r826 - trunk/code/win32

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Jul 31 15:05:15 EDT 2006


Author: tma
Date: 2006-07-31 15:05:14 -0400 (Mon, 31 Jul 2006)
New Revision: 826

Modified:
   trunk/code/win32/win_glimp.c
Log:
* Fix to Windows renderer deadlock (bug #2767, Daniel Deptford)


Modified: trunk/code/win32/win_glimp.c
===================================================================
--- trunk/code/win32/win_glimp.c	2006-07-31 15:32:59 UTC (rev 825)
+++ trunk/code/win32/win_glimp.c	2006-07-31 19:05:14 UTC (rev 826)
@@ -1634,13 +1634,13 @@
 		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++;
 	}




More information about the quake3-commits mailing list