Module: Demos Branch: master Commit: 4a11ba55bc80129e36f76c77933c73212e4bf014 URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=4a11ba55bc80129e36f76c77933c73212e4bf014
Author: Brian Paul <[email protected]> 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); } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
