summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-vs-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shaders/glsl-vs-functions.c')
-rw-r--r--tests/shaders/glsl-vs-functions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/shaders/glsl-vs-functions.c b/tests/shaders/glsl-vs-functions.c
index 99410109..b5afe20c 100644
--- a/tests/shaders/glsl-vs-functions.c
+++ b/tests/shaders/glsl-vs-functions.c
@@ -54,7 +54,8 @@ piglit_display(void)
pass &= piglit_probe_pixel_rgba(piglit_width / 2, piglit_height / 2,
result);
- glutSwapBuffers();
+ if (!piglit_automatic)
+ glutSwapBuffers();
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}