diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-09-01 18:38:27 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-09-01 18:38:27 +0200 |
commit | fec95ebb06f3ae6c52df7e48ed14beedff10ac3e (patch) | |
tree | 406de5fae699bc93bb559f2cac2b833116d27ec6 /vcl | |
parent | 244c4571d3c317640538412915fa5cf514778c7b (diff) |
windows opengl: When the 2nd param is NULL, the 1st is ignored anyway.
Change-Id: I840e8bb2d2ccae869c330bb32dba484b4a835a51
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 91ebb755cffc..f6cd458b221b 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(); |