[Piglit] [PATCH] fbo-missing-attachment-blit: make sure the viewport is, properly initialized.

Morgan Armand morgan.devel at gmail.com
Sun Nov 6 14:35:44 PST 2011


This test reports failure on my computer because the test is launched from piglit_init, before the viewport has a chance
to be setup correctly. This patch resolve the problem (but maybe the right thing to do is to move the whole test into
piglit_display).

---
 .../fbo-missing-attachment-blit.c                  |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/spec/arb_es2_compatibility/fbo-missing-attachment-blit.c b/tests/spec/arb_es2_compatibility/fbo-missing-attachment-blit.c
index 5356505..7ec8c8c 100644
--- a/tests/spec/arb_es2_compatibility/fbo-missing-attachment-blit.c
+++ b/tests/spec/arb_es2_compatibility/fbo-missing-attachment-blit.c
@@ -133,6 +133,7 @@ do_blit_test(bool use_es2, bool from_missing_to_complete)
 	 * is correct.
 	 */
 	glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fb[src]);
+	glViewport(0, 0, piglit_width, piglit_height);
 	glClearDepth(0.0);
 	glClear(GL_DEPTH_BUFFER_BIT);
 	glEnable(GL_DEPTH_TEST);
-- 
1.7.7.1.msysgit.0



More information about the Piglit mailing list