summaryrefslogtreecommitdiff
path: root/tests/hiz
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2012-08-21 21:11:55 +1200
committerChad Versace <chad.versace@linux.intel.com>2012-09-04 16:02:18 -0700
commit9cad85663901e4c3f729b86b007a97fa1de13a5f (patch)
tree72936357a09eb03955f59358f1517d217e6e7b97 /tests/hiz
parent9c6ac73c2871a3b08ea13d39cd5c596d75220aab (diff)
Convert all glutSwapBuffers to piglit_present_results
V2: Don't break tests/general/read-front Reviewed-by: Paul Berry <stereotype441@gmail.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/hiz')
-rw-r--r--tests/hiz/hiz-util.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/hiz/hiz-util.c b/tests/hiz/hiz-util.c
index 22b198a59..6c6404e1c 100644
--- a/tests/hiz/hiz-util.c
+++ b/tests/hiz/hiz-util.c
@@ -258,7 +258,7 @@ hiz_run_test_depth_test_fbo(const struct hiz_fbo_options *fbo_options)
glBlitFramebuffer(0, 0, piglit_width, piglit_height,
0, 0, piglit_width, piglit_height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
- glutSwapBuffers();
+ piglit_present_results();
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo);
}
@@ -272,7 +272,7 @@ hiz_run_test_depth_test_window()
{
bool pass = hiz_run_test_depth_test_common();
if (!piglit_automatic)
- glutSwapBuffers();
+ piglit_present_results();
return pass;
}
@@ -362,7 +362,7 @@ hiz_run_test_depth_read_fbo(const struct hiz_fbo_options *fbo_options)
glBlitFramebuffer(0, 0, piglit_width, piglit_height,
0, 0, piglit_width, piglit_height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
- glutSwapBuffers();
+ piglit_present_results();
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo);
}
@@ -376,7 +376,7 @@ hiz_run_test_depth_read_window()
{
bool pass = hiz_run_test_depth_read_common();
if (!piglit_automatic)
- glutSwapBuffers();
+ piglit_present_results();
return pass;
}
@@ -469,7 +469,7 @@ hiz_run_test_stencil_test_fbo(const struct hiz_fbo_options *fbo_options)
glBlitFramebuffer(0, 0, piglit_width, piglit_height,
0, 0, piglit_width, piglit_height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
- glutSwapBuffers();
+ piglit_present_results();
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo);
}
@@ -483,7 +483,7 @@ hiz_run_test_stencil_test_window()
{
bool pass = hiz_run_test_stencil_test_common();
if (!piglit_automatic)
- glutSwapBuffers();
+ piglit_present_results();
return pass;
}
@@ -584,7 +584,7 @@ hiz_run_test_stencil_read_fbo(const struct hiz_fbo_options *fbo_options)
glBlitFramebuffer(0, 0, piglit_width, piglit_height,
0, 0, piglit_width, piglit_height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
- glutSwapBuffers();
+ piglit_present_results();
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo);
}
@@ -598,7 +598,7 @@ hiz_run_test_stencil_read_window()
{
bool pass = hiz_run_test_stencil_read_common();
if (!piglit_automatic)
- glutSwapBuffers();
+ piglit_present_results();
return pass;
}
@@ -708,7 +708,7 @@ hiz_run_test_depth_stencil_test_fbo(const struct hiz_fbo_options *fbo_options)
glBlitFramebuffer(0, 0, piglit_width, piglit_height,
0, 0, piglit_width, piglit_height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
- glutSwapBuffers();
+ piglit_present_results();
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo);
}