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

windows opengl: Avoid an unnecessary wglMakeCurrent() call.

Change-Id: I1c1287a29067c053565c49c0ce96918a2d27d87f
üst e3ef73a8
......@@ -1190,7 +1190,6 @@ void OpenGLContext::reset()
// destroy all programs
if( !maPrograms.empty() )
{
makeCurrent();
maPrograms.clear();
}
......@@ -1208,7 +1207,8 @@ void OpenGLContext::reset()
if (itr != g_vShareList.end())
g_vShareList.erase(itr);
wglMakeCurrent(NULL, NULL);
if (wglGetCurrentContext() != NULL)
wglMakeCurrent(NULL, NULL);
wglDeleteContext( m_aGLWin.hRC );
ReleaseDC( m_aGLWin.hWnd, m_aGLWin.hDC );
}
......
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