summaryrefslogtreecommitdiff
path: root/tests/general/draw-vertices.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general/draw-vertices.c')
-rw-r--r--tests/general/draw-vertices.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/general/draw-vertices.c b/tests/general/draw-vertices.c
index 81408c2c..efda6ee5 100644
--- a/tests/general/draw-vertices.c
+++ b/tests/general/draw-vertices.c
@@ -572,7 +572,8 @@ piglit_display(void)
}
glFinish();
- glutSwapBuffers();
+ if (!piglit_automatic)
+ glutSwapBuffers();
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}