aboutsummaryrefslogtreecommitdiffstats
path: root/code/win32/win_glimp.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-07-31 19:05:14 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-07-31 19:05:14 +0000
commitead6ad4e27610d53977d11955569fcf348fac5dd (patch)
tree00764d26a78db356c1a6cbf898e49b28b0b564e8 /code/win32/win_glimp.c
parent6a6cf2f7e76792d326ec686d997f06cf2d04081c (diff)
downloadioquake3-aero-ead6ad4e27610d53977d11955569fcf348fac5dd.tar.gz
ioquake3-aero-ead6ad4e27610d53977d11955569fcf348fac5dd.zip
* Fix to Windows renderer deadlock (bug #2767, Daniel Deptford)
git-svn-id: svn://svn.icculus.org/quake3/trunk@826 edf5b092-35ff-0310-97b2-ce42778d08ea
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++;
}