* Fix to Windows renderer deadlock (bug #2767, Daniel Deptford)

This commit is contained in:
Tim Angus 2006-07-31 19:05:14 +00:00
parent 5efd7c8c36
commit 13b119a40c

View file

@ -1634,13 +1634,13 @@ void *GLimp_RendererSleep( void ) {
wglErrors++;
}
ResetEvent( renderActiveEvent );
// after this, the front end can exit GLimp_FrontEndSleep
SetEvent( renderCompletedEvent );
WaitForSingleObject( renderCommandsEvent, INFINITE );
ResetEvent( renderActiveEvent );
if ( !qwglMakeCurrent( glw_state.hDC, glw_state.hGLRC ) ) {
wglErrors++;
}