summaryrefslogtreecommitdiff
path: root/tests/texturing/tex-miplevel-selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/texturing/tex-miplevel-selection.c')
-rw-r--r--tests/texturing/tex-miplevel-selection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/texturing/tex-miplevel-selection.c b/tests/texturing/tex-miplevel-selection.c
index c065836f..b764d4d5 100644
--- a/tests/texturing/tex-miplevel-selection.c
+++ b/tests/texturing/tex-miplevel-selection.c
@@ -320,7 +320,8 @@ piglit_display(void)
}
printf("Summary: %i/%i passed\n", total-failed, total);
- glutSwapBuffers();
+ if (!piglit_automatic)
+ glutSwapBuffers();
return !failed ? PIGLIT_PASS : PIGLIT_FAIL;
}