vcl/source/opengl/OpenGLContext.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit fec95ebb06f3ae6c52df7e48ed14beedff10ac3e Author: Jan Holesovsky <ke...@collabora.com> Date: Tue Sep 1 18:38:27 2015 +0200 windows opengl: When the 2nd param is NULL, the 1st is ignored anyway. Change-Id: I840e8bb2d2ccae869c330bb32dba484b4a835a51 diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 91ebb75..f6cd458 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -1208,7 +1208,7 @@ void OpenGLContext::reset() if (itr != g_vShareList.end()) g_vShareList.erase(itr); - wglMakeCurrent( m_aGLWin.hDC, 0 ); + wglMakeCurrent(NULL, NULL); wglDeleteContext( m_aGLWin.hRC ); ReleaseDC( m_aGLWin.hWnd, m_aGLWin.hDC ); } @@ -1385,7 +1385,7 @@ void OpenGLContext::resetCurrent() OpenGLZone aZone; #if defined( WNT ) - wglMakeCurrent( m_aGLWin.hDC, 0 ); + wglMakeCurrent(NULL, NULL); #elif defined( MACOSX ) (void) this; // loplugin:staticmethods OpenGLWrapper::resetCurrent(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits