Kaydet (Commit) fec95ebb authored tarafından Jan Holesovsky's avatar Jan Holesovsky

windows opengl: When the 2nd param is NULL, the 1st is ignored anyway.

Change-Id: I840e8bb2d2ccae869c330bb32dba484b4a835a51
üst 244c4571
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment