X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglut%2Fglx%2Fglut_event.c;h=cf34e05ca9858dfc2b764b1bcbf3b572f2bfd569;hb=a3ee0aa1bb7c3f9dfc5b13b4e72522c10a22ad05;hp=b5df7b23119d93c5f0416231d65e31dabe952aaf;hpb=0397b2bb41b0f337af2949a15bcd7d0e7e8a7dc1;p=mesa.git diff --git a/src/glut/glx/glut_event.c b/src/glut/glx/glut_event.c index b5df7b23119..cf34e05ca98 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);