aboutsummaryrefslogtreecommitdiffstats
path: root/src/glut/glx/glut_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glut/glx/glut_event.c')
-rw-r--r--src/glut/glx/glut_event.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/glut/glx/glut_event.c b/src/glut/glx/glut_event.c
index b5df7b23119..d6d963896a6 100644
--- a/src/glut/glx/glut_event.c
+++ b/src/glut/glx/glut_event.c
@@ -1321,7 +1321,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);
@@ -1338,9 +1343,7 @@ processWindowWorkList(GLUTwindow * window)
}
}
-#ifndef _WIN32
static /* X11 implementations do not need this global. */
-#endif
void
__glutProcessWindowWorkLists(void)
{