Merge commit 'origin/gallium-0.1' into gallium-0.2
[mesa.git] / src / glut / glx / glut_event.c
index b5df7b23119d93c5f0416231d65e31dabe952aaf..cf34e05ca9858dfc2b764b1bcbf3b572f2bfd569 100644 (file)
@@ -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);