diff options
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 958c59925db2..886c8fbe80d3 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -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; |