diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-09-05 17:22:06 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-10-09 19:08:25 -0700 |
commit | 3168c103b0b5cc53dbac5389a6b9abef16e00765 (patch) | |
tree | e8bc0d78f5ccdeb9ad4a5a4a35c33ddc850944fa /tests/general/read-front.c | |
parent | cc29216d873c02a5a6c6a7bb9f68139c0085b47c (diff) |
tests,util: Wrap glutSwapBuffers with piglit_swap_buffers
I'm trying to transition Piglit from using GLUT to using Waffle. This
requires killing all uses of GLUT functions, one-by-one.
Two remaining tests called glutSwapBuffers directly, read-front and
texline, for which piglit_preset_results is unsuitable. These tests call
glReadPixels on the front buffer. This patch replaces those calls with
a new wrapper, piglit_swap_buffers.
Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Paul Berry <stereotype441@gmail.com>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/general/read-front.c')
-rw-r--r-- | tests/general/read-front.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/general/read-front.c b/tests/general/read-front.c index 2e999baa7..83e7da02d 100644 --- a/tests/general/read-front.c +++ b/tests/general/read-front.c @@ -58,7 +58,7 @@ piglit_display(void) glReadBuffer(GL_FRONT); - glutSwapBuffers(); + piglit_swap_buffers(); pass &= piglit_probe_rect_rgb(0, 0, piglit_width, piglit_height / 2, blue); |