[Piglit] [PATCH] arb_draw_instanced: use default window size, set viewport

Brian Paul brianp at vmware.com
Tue May 20 16:15:50 PDT 2014


---
 tests/spec/arb_draw_instanced/execution/elements.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/spec/arb_draw_instanced/execution/elements.c b/tests/spec/arb_draw_instanced/execution/elements.c
index 7cb418b..84eed79 100644
--- a/tests/spec/arb_draw_instanced/execution/elements.c
+++ b/tests/spec/arb_draw_instanced/execution/elements.c
@@ -36,9 +36,6 @@
 PIGLIT_GL_TEST_CONFIG_BEGIN
 
 	config.supports_gl_compat_version = 10;
-
-	config.window_width = 70;
-	config.window_height = 30;
 	config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE;
 
 PIGLIT_GL_TEST_CONFIG_END
@@ -87,6 +84,8 @@ piglit_display(void)
 
 	piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
 
+	glViewport(0, 0, piglit_width, piglit_height);
+
 	glClearColor(0.5, 0.5, 0.5, 0.0);
 	glClear(GL_COLOR_BUFFER_BIT);
 
-- 
1.7.10.4



More information about the Piglit mailing list