aboutsummaryrefslogtreecommitdiffstats
path: root/code/win32/win_glimp.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/win32/win_glimp.c')
-rw-r--r--code/win32/win_glimp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/win32/win_glimp.c b/code/win32/win_glimp.c
index 460d868..54d32a9 100644
--- a/code/win32/win_glimp.c
+++ b/code/win32/win_glimp.c
@@ -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++;
}