summaryrefslogtreecommitdiff
path: root/tests/texturing/lodclamp-between.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/texturing/lodclamp-between.c')
-rw-r--r--tests/texturing/lodclamp-between.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/texturing/lodclamp-between.c b/tests/texturing/lodclamp-between.c
index b8492124..34b61993 100644
--- a/tests/texturing/lodclamp-between.c
+++ b/tests/texturing/lodclamp-between.c
@@ -141,7 +141,8 @@ piglit_display(void)
glDeleteTextures(1, &tex);
- glutSwapBuffers();
+ if (!piglit_automatic)
+ glutSwapBuffers();
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}