From ead6ad4e27610d53977d11955569fcf348fac5dd Mon Sep 17 00:00:00 2001 From: tma Date: Mon, 31 Jul 2006 19:05:14 +0000 Subject: * Fix to Windows renderer deadlock (bug #2767, Daniel Deptford) git-svn-id: svn://svn.icculus.org/quake3/trunk@826 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/win32/win_glimp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code') 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++; } -- cgit v1.2.3