glut: only call glFinish() in processWindowWorkList() for indirect contexts.

Basically, do as the comment says.
This commit is contained in:
Brian Paul
2008-09-11 11:05:13 -06:00
parent 90c93bbeee
commit d50d68a1c9
+6 -1
View File
@@ -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);