projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90c93bb
)
glut: only call glFinish() in processWindowWorkList() for indirect contexts.
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 11 Sep 2008 17:05:13 +0000
(11:05 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 11 Sep 2008 17:05:13 +0000
(11:05 -0600)
Basically, do as the comment says.
src/glut/glx/glut_event.c
patch
|
blob
|
history
diff --git
a/src/glut/glx/glut_event.c
b/src/glut/glx/glut_event.c
index 4e67da674ed2d99cda18b70d659a135268b0d479..443f9a85740c92ad2e7775aee76999520ead6bb5 100644
(file)
--- a/
src/glut/glx/glut_event.c
+++ b/
src/glut/glx/glut_event.c
@@
-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);