summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-09 05:23:12 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-12 03:00:04 +0200
commit21130eaef91bcc471e7c265623a078e82c13b15d (patch)
tree3fc075cd5c234565a4391dbea9dfc583745e4f59
parent0515a9fca1a0db34fbad4c5c6fd4c881b743a870 (diff)
we need glew initalized before testing through it for features
Change-Id: I4999de29b2a12888129ab291344b239b8def373c
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 8ad2d7a365aa..58202fb170a2 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -509,16 +509,6 @@ bool OpenGLContext::ImplInit()
//rGLRender.InitOpenGL(m_aGLWin);
-#ifdef DBG_UTIL
- // only enable debug output in dbgutil build
- if( GLEW_ARB_debug_output )
- {
- glEnable(GL_DEBUG_OUTPUT);
- glDebugMessageCallback(&debug_callback, NULL);
- }
-
-#endif
-
static bool bGlewInit = false;
if(!bGlewInit)
{
@@ -533,6 +523,16 @@ bool OpenGLContext::ImplInit()
bGlewInit = true;
}
+#ifdef DBG_UTIL
+ // only enable debug output in dbgutil build
+ if( GLEW_ARB_debug_output )
+ {
+ glEnable(GL_DEBUG_OUTPUT);
+ glDebugMessageCallback(&debug_callback, NULL);
+ }
+
+#endif
+
SAL_INFO("vcl.opengl", "OpenGLContext::ImplInit----end");
mbInitialized = true;
return true;