summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-bindattriblocation.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shaders/glsl-bindattriblocation.c')
-rw-r--r--tests/shaders/glsl-bindattriblocation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/shaders/glsl-bindattriblocation.c b/tests/shaders/glsl-bindattriblocation.c
index aa389cee..d9b6cea6 100644
--- a/tests/shaders/glsl-bindattriblocation.c
+++ b/tests/shaders/glsl-bindattriblocation.c
@@ -115,7 +115,8 @@ piglit_display(void)
glDisableVertexAttribArray(attrib_loc);
- glutSwapBuffers();
+ if (!piglit_automatic)
+ glutSwapBuffers();
return result;
}