-sync command line option now causes X server to operate in synchronized/blocking mode

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1643 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2014-01-23 02:28:02 +00:00
parent f6a11225ad
commit 9b0e63e8da

View File

@ -176,6 +176,9 @@ void fgPlatformInitialize( const char* displayName )
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