From 396aef4e3f2d0d7d80c6b224b52544231c1ef556 Mon Sep 17 00:00:00 2001 From: Diederick Niehorster Date: Thu, 23 Jan 2014 02:28:02 +0000 Subject: [PATCH] -sync command line option now causes X server to operate in synchronized/blocking mode git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1643 7f0cb862-5218-0410-a997-914c9d46530a --- src/x11/fg_init_x11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/x11/fg_init_x11.c b/src/x11/fg_init_x11.c index 52c5d88..3adf4e4 100644 --- a/src/x11/fg_init_x11.c +++ b/src/x11/fg_init_x11.c @@ -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 -- 1.7.10.4