From: <dc...@us...> - 2014-01-23 02:28:03
|
Revision: 1643 http://sourceforge.net/p/freeglut/code/1643 Author: dcnieho Date: 2014-01-23 02:28:02 +0000 (Thu, 23 Jan 2014) Log Message: ----------- -sync command line option now causes X server to operate in synchronized/blocking mode Modified Paths: -------------- trunk/freeglut/freeglut/src/x11/fg_init_x11.c Modified: trunk/freeglut/freeglut/src/x11/fg_init_x11.c =================================================================== --- trunk/freeglut/freeglut/src/x11/fg_init_x11.c 2014-01-22 12:06:59 UTC (rev 1642) +++ trunk/freeglut/freeglut/src/x11/fg_init_x11.c 2014-01-23 02:28:02 UTC (rev 1643) @@ -176,6 +176,9 @@ if( fgDisplay.pDisplay.Display == NULL ) fgError( "failed to open display '%s'", XDisplayName( displayName ) ); + if ( fgState.XSyncSwitch ) + XSynchronize(fgDisplay.pDisplay.Display, True); + #ifdef EGL_VERSION_1_0 fghPlatformInitializeEGL(); #else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |