[Piglit] [PATCH] dlist-clear: call piglit_ortho_projection() in piglit_display()
Brian Paul
brianp at vmware.com
Tue Jun 21 15:05:43 PDT 2011
If the window gets resized (either by the user or window system)
this will ensure that the ortho projection is up to date with
respect to the window size. Setting the ortho projection in
piglit_init() depends on the window size not changing between
init time and draw time.
---
tests/general/dlist-clear.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tests/general/dlist-clear.c b/tests/general/dlist-clear.c
index 4f81949..f8e6b13 100644
--- a/tests/general/dlist-clear.c
+++ b/tests/general/dlist-clear.c
@@ -45,6 +45,8 @@ piglit_display(void)
static float green[] = {0.0, 1.0, 0.0, 0.0};
static float blue[] = {0.0, 0.0, 1.0, 0.0};
+ piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
+
glClearColor(0.5, 0.0, 0.0, 0.0);
glColor4fv(red);
--
1.7.3.4
More information about the Piglit
mailing list