-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:
parent
f6a11225ad
commit
9b0e63e8da
@ -176,6 +176,9 @@ void fgPlatformInitialize( const char* displayName )
|
|||||||
if( fgDisplay.pDisplay.Display == NULL )
|
if( fgDisplay.pDisplay.Display == NULL )
|
||||||
fgError( "failed to open display '%s'", XDisplayName( displayName ) );
|
fgError( "failed to open display '%s'", XDisplayName( displayName ) );
|
||||||
|
|
||||||
|
if ( fgState.XSyncSwitch )
|
||||||
|
XSynchronize(fgDisplay.pDisplay.Display, True);
|
||||||
|
|
||||||
#ifdef EGL_VERSION_1_0
|
#ifdef EGL_VERSION_1_0
|
||||||
fghPlatformInitializeEGL();
|
fghPlatformInitializeEGL();
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user