diff options
Diffstat (limited to 'tests/shaders/glsl-vs-if-bool.c')
-rw-r--r-- | tests/shaders/glsl-vs-if-bool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/shaders/glsl-vs-if-bool.c b/tests/shaders/glsl-vs-if-bool.c index 289b04f8..63fdf454 100644 --- a/tests/shaders/glsl-vs-if-bool.c +++ b/tests/shaders/glsl-vs-if-bool.c @@ -56,7 +56,8 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(15, 15, red); pass &= piglit_probe_pixel_rgb(35, 15, green); - glutSwapBuffers(); + if (!piglit_automatic) + glutSwapBuffers(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } |