summaryrefslogtreecommitdiff
path: root/tests/fbo/fbo-alphatest-nocolor.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fbo/fbo-alphatest-nocolor.c')
-rw-r--r--tests/fbo/fbo-alphatest-nocolor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fbo/fbo-alphatest-nocolor.c b/tests/fbo/fbo-alphatest-nocolor.c
index 0bc37ee5..f4e656de 100644
--- a/tests/fbo/fbo-alphatest-nocolor.c
+++ b/tests/fbo/fbo-alphatest-nocolor.c
@@ -150,7 +150,8 @@ enum piglit_result piglit_display(void)
glDeleteTextures(1, &tex);
- glutSwapBuffers();
+ if (!piglit_automatic)
+ glutSwapBuffers();
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}