Demos (master): rubberband: add a glFlush() call to display the front-buffer drawing
Brian Paul
brianp at kemper.freedesktop.org
Fri Aug 31 19:07:34 UTC 2012
Module: Demos
Branch: master
Commit: 4a11ba55bc80129e36f76c77933c73212e4bf014
URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=4a11ba55bc80129e36f76c77933c73212e4bf014
Author: Brian Paul <brianp at vmware.com>
Date: Fri Aug 31 13:07:08 2012 -0600
rubberband: add a glFlush() call to display the front-buffer drawing
---
src/tests/rubberband.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/tests/rubberband.c b/src/tests/rubberband.c
index 43772e7..3825826 100644
--- a/src/tests/rubberband.c
+++ b/src/tests/rubberband.c
@@ -67,6 +67,9 @@ DrawRect(const struct rect *r)
glDisable(GL_COLOR_LOGIC_OP);
glDisable(GL_BLEND);
+ /* Need this to ensure the front buffer drawing is actually displayed */
+ glFlush();
+
glDrawBuffer(GL_BACK);
}
More information about the mesa-commit
mailing list