From 21130eaef91bcc471e7c265623a078e82c13b15d Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 9 May 2014 05:23:12 +0200 Subject: we need glew initalized before testing through it for features Change-Id: I4999de29b2a12888129ab291344b239b8def373c --- vcl/source/opengl/OpenGLContext.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'vcl') 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; -- cgit