summaryrefslogtreecommitdiff
path: root/vcl/source/opengl/OpenGLContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/opengl/OpenGLContext.cxx')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 2f2d66f4c4c1..d20d6fdcbe53 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -917,7 +917,6 @@ bool OpenGLContext::ImplInit()
}
wglMakeCurrent(NULL, NULL);
- InitGLEWDebugging();
wglDeleteContext(hTempRC);
if (!wglMakeCurrent(m_aGLWin.hDC, m_aGLWin.hRC))
@@ -927,6 +926,8 @@ bool OpenGLContext::ImplInit()
return false;
}
+ InitGLEWDebugging();
+
g_vShareList.push_back(m_aGLWin.hRC);
RECT clientRect;