projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Rest of Set #3
[freeglut]
/
freeglut-1.3
/
freeglut_display.c
diff --git
a/freeglut-1.3/freeglut_display.c
b/freeglut-1.3/freeglut_display.c
index
9117a10
..
900b9d0
100644
(file)
--- a/
freeglut-1.3/freeglut_display.c
+++ b/
freeglut-1.3/freeglut_display.c
@@
-74,6
+74,11
@@
void FGAPIENTRY glutSwapBuffers( void )
*/
glFlush();
+ /*
+ * If it's single-buffered, we shouldn't be here.
+ */
+ if ( ! fgStructure.Window->Window.DoubleBuffered ) return ;
+
#if TARGET_HOST_UNIX_X11
/*
* Issue the glXSwapBuffers call and be done with it