From 13b119a40c3a9ac7ed794bb694c398d920c0efa8 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 31 Jul 2006 19:05:14 +0000 Subject: [PATCH] * Fix to Windows renderer deadlock (bug #2767, Daniel Deptford) --- code/win32/win_glimp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/win32/win_glimp.c b/code/win32/win_glimp.c index 460d868c..54d32a91 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++; }