Kaydet (Commit) 21130eae authored tarafından Markus Mohrhard's avatar Markus Mohrhard

we need glew initalized before testing through it for features

Change-Id: I4999de29b2a12888129ab291344b239b8def373c
üst 0515a9fc
...@@ -509,16 +509,6 @@ bool OpenGLContext::ImplInit() ...@@ -509,16 +509,6 @@ bool OpenGLContext::ImplInit()
//rGLRender.InitOpenGL(m_aGLWin); //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; static bool bGlewInit = false;
if(!bGlewInit) if(!bGlewInit)
{ {
...@@ -533,6 +523,16 @@ bool OpenGLContext::ImplInit() ...@@ -533,6 +523,16 @@ bool OpenGLContext::ImplInit()
bGlewInit = true; 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"); SAL_INFO("vcl.opengl", "OpenGLContext::ImplInit----end");
mbInitialized = true; mbInitialized = true;
return true; return true;
......
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