[Libreoffice-commits] core.git: vcl/source

Jan Holesovsky kendy at collabora.com
Tue Sep 1 05:52:50 PDT 2015


 vcl/source/opengl/OpenGLContext.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit aefb3d973c8248b8c60149850f0835e4a8abd85d
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue Sep 1 14:46:32 2015 +0200

    windows opengl: Call InitGLEWDebugging() after we have the context.
    
    Change-Id: I1582443cf6799dd73a3909660d524eaacbc2d909

diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 2f2d66f..d20d6fd 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;


More information about the Libreoffice-commits mailing list