summaryrefslogtreecommitdiffstats
path: root/progs/xdemos/glxswapcontrol.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-05 14:13:48 -0600
committerBrian Paul <[email protected]>2009-08-05 14:13:48 -0600
commit1f713059934c2365a42aadfdca49213b36a7de90 (patch)
treee116f5f41dfde926be870dfc439a7dfbaa0ded06 /progs/xdemos/glxswapcontrol.c
parent3905119b4743eb5d284236cc237ee2c19ae3c5c8 (diff)
parent5b3428d7453eec8e8a5344e22113774dea1dc456 (diff)
Merge branch 'mesa_7_5_branch'
Conflicts: src/mesa/main/state.c
Diffstat (limited to 'progs/xdemos/glxswapcontrol.c')
-rw-r--r--progs/xdemos/glxswapcontrol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/xdemos/glxswapcontrol.c b/progs/xdemos/glxswapcontrol.c
index df9f7ad784b..cd60d460a06 100644
--- a/progs/xdemos/glxswapcontrol.c
+++ b/progs/xdemos/glxswapcontrol.c
@@ -587,6 +587,9 @@ event_loop(Display *dpy, Window win)
angle += 2.0;
draw();
+
+ glXSwapBuffers(dpy, win);
+
if ( get_frame_usage != NULL ) {
GLfloat temp;
@@ -594,8 +597,6 @@ event_loop(Display *dpy, Window win)
frame_usage += temp;
}
- glXSwapBuffers(dpy, win);
-
/* calc framerate */
{
static int t0 = -1;