projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed unsafe usage of malloc() pointed out by jtsiomb.
[freeglut]
/
src
/
x11
/
fg_init_x11.c
diff --git
a/src/x11/fg_init_x11.c
b/src/x11/fg_init_x11.c
index
52c5d88
..
d2907c9
100644
(file)
--- a/
src/x11/fg_init_x11.c
+++ b/
src/x11/fg_init_x11.c
@@
-1,5
+1,5
@@
/*
/*
- * freeglut_init_x11.c
+ * fg_init_x11.c
*
* Various freeglut initialization functions.
*
*
* Various freeglut initialization functions.
*
@@
-176,6
+176,9
@@
void fgPlatformInitialize( const char* displayName )
if( fgDisplay.pDisplay.Display == NULL )
fgError( "failed to open display '%s'", XDisplayName( 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
#ifdef EGL_VERSION_1_0
fghPlatformInitializeEGL();
#else