summaryrefslogtreecommitdiff
path: root/src/glut/glx/glut_event.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-09-11 11:05:13 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-09-11 11:05:13 -0600
commitd50d68a1c940ed9c8d8c65e8e33667fa90d5baa1 (patch)
treeb07a35d6cf03d50402225d544e61d4f585d6e765 /src/glut/glx/glut_event.c
parent90c93bbeeec1a8ca75b68004afc5d8cb689860bc (diff)
glut: only call glFinish() in processWindowWorkList() for indirect contexts.
Basically, do as the comment says.
Diffstat (limited to 'src/glut/glx/glut_event.c')
-rw-r--r--src/glut/glx/glut_event.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glut/glx/glut_event.c b/src/glut/glx/glut_event.c
index 4e67da674e..443f9a8574 100644
--- a/src/glut/glx/glut_event.c
+++ b/src/glut/glx/glut_event.c
@@ -1317,7 +1317,12 @@ processWindowWorkList(GLUTwindow * window)
is where the finish works gets queued for indirect
contexts. */
__glutSetWindow(window);
- glFinish();
+#if !defined(_WIN32)
+ if (!window->isDirect)
+#endif
+ {
+ glFinish();
+ }
}
if (workMask & GLUT_DEBUG_WORK) {
__glutSetWindow(window);