Kaydet (Commit) 1807d095 authored tarafından jan Iversen's avatar jan Iversen

vcl, added checks for HAVE_FEATURE_OPENGL

missing HAVE_FEATURE_OPENGL caused link errors

Change-Id: I1c44f9c9f729f351b6acf17ae60cd855b69394db
üst 54982d5f
......@@ -32,6 +32,8 @@
#include <opengl/RenderState.hxx>
#include <config_features.h>
using namespace com::sun::star;
#define MAX_FRAMEBUFFER_COUNT 30
......@@ -505,8 +507,10 @@ rtl::Reference<OpenGLContext> OpenGLContext::getVCLContext(bool bMakeIfNecessary
if (pDefWindow)
{
// create our magic fallback window context.
#if HAVE_FEATURE_OPENGL
xContext = pDefWindow->GetGraphics()->GetOpenGLContext();
assert(xContext.is());
#endif
}
else
xContext = pContext;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment