diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-09-11 11:05:13 -0600 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-11 20:04:44 +0100 |
commit | c60f977b7e8db821a790bce1fa34bcec47e23fd7 (patch) | |
tree | fcd014023f54c7ddf592a7cc1eb93f1ba37d1a84 | |
parent | aeb1d7441513c4a1249f5099e9945bf433dbe137 (diff) | |
download | glut-c60f977b7e8db821a790bce1fa34bcec47e23fd7.tar.gz |
glut: only call glFinish() in processWindowWorkList() for indirect contexts.
Basically, do as the comment says.
-rw-r--r-- | src/glut/glx/glut_event.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glut/glx/glut_event.c b/src/glut/glx/glut_event.c index b5df7b2..cf34e05 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); |