[Piglit] [PATCH 5/8] enable -fbo for general/pbo-teximage

Chris Forbes chrisf at ijw.co.nz
Sat Apr 28 17:44:58 PDT 2012


---
 tests/general/pbo-teximage.c |   14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/tests/general/pbo-teximage.c b/tests/general/pbo-teximage.c
index 058d519..e8aa97e 100644
--- a/tests/general/pbo-teximage.c
+++ b/tests/general/pbo-teximage.c
@@ -45,6 +45,8 @@ piglit_display(void)
 	float *pixels;
 	GLuint pbo, tex;
 
+	piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
+
 	glClearColor(0.5, 0.5, 0.5, 0.0);
 	glClear(GL_COLOR_BUFFER_BIT);
 
@@ -86,23 +88,13 @@ piglit_display(void)
 	pass &= piglit_probe_pixel_rgb(12, 18, blue);
 	pass &= piglit_probe_pixel_rgb(18, 18, red);
 
-	glutSwapBuffers();
+	piglit_present_results();
 
 	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
 }
 
-
-static void reshape(int width, int height)
-{
-	piglit_width = width;
-	piglit_height = height;
-
-	piglit_ortho_projection(width, height, GL_FALSE);
-}
-
 void
 piglit_init(int argc, char **argv)
 {
-	reshape(piglit_width, piglit_height);
 	piglit_require_extension("GL_ARB_pixel_buffer_object");
 }
-- 
1.7.10



More information about the Piglit mailing list