summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-09-01 18:38:27 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-02 02:42:47 +0000
commit7017ab3559f8298f9afa364171531a10782d8d29 (patch)
treecf49b7e1d44fed845d32c8ce3b4d4299a391574d
parentf2a367ffa4bb20ceb2bab11d8895653bf0d1309d (diff)
windows opengl: When the 2nd param is NULL, the 1st is ignored anyway.
Change-Id: I840e8bb2d2ccae869c330bb32dba484b4a835a51 Reviewed-on: https://gerrit.libreoffice.org/18248 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-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 c4ff6d8d2a0b..84d8a79610fc 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -1296,7 +1296,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 );
}
@@ -1473,7 +1473,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();