summaryrefslogtreecommitdiff
path: root/vcl/source/opengl
diff options
context:
space:
mode:
authorjan Iversen <jani@libreoffice.org>2018-01-07 14:16:06 +0100
committerjan Iversen <jani@libreoffice.org>2018-01-07 14:20:06 +0100
commit1807d095b48889ce2b3a88d807124e51a38c73c2 (patch)
treef73d37dcc96b90937cc357fd81fc86b4b28c96eb /vcl/source/opengl
parent54982d5fea21d9e81e1561a74fd341ddb0570c91 (diff)
vcl, added checks for HAVE_FEATURE_OPENGL
missing HAVE_FEATURE_OPENGL caused link errors Change-Id: I1c44f9c9f729f351b6acf17ae60cd855b69394db
Diffstat (limited to 'vcl/source/opengl')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx4
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;