summaryrefslogtreecommitdiff
path: root/vcl/source/opengl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-09-01 18:38:27 +0200
committerJan Holesovsky <kendy@collabora.com>2015-09-01 18:38:27 +0200
commitfec95ebb06f3ae6c52df7e48ed14beedff10ac3e (patch)
tree406de5fae699bc93bb559f2cac2b833116d27ec6 /vcl/source/opengl
parent244c4571d3c317640538412915fa5cf514778c7b (diff)
windows opengl: When the 2nd param is NULL, the 1st is ignored anyway.
Change-Id: I840e8bb2d2ccae869c330bb32dba484b4a835a51
Diffstat (limited to 'vcl/source/opengl')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx4
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();