summaryrefslogtreecommitdiff
path: root/tests/general/scissor-depth-clear.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general/scissor-depth-clear.c')
-rw-r--r--tests/general/scissor-depth-clear.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/general/scissor-depth-clear.c b/tests/general/scissor-depth-clear.c
index b40b1c18..9f8e90d5 100644
--- a/tests/general/scissor-depth-clear.c
+++ b/tests/general/scissor-depth-clear.c
@@ -79,7 +79,8 @@ piglit_display(void)
pass &= piglit_probe_rect_rgb(0, 20, piglit_width, piglit_height - 20,
green);
- glutSwapBuffers();
+ if (!piglit_automatic)
+ glutSwapBuffers();
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}