diff options
author | Eric Anholt <eric@anholt.net> | 2009-10-27 11:44:11 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-10-27 14:32:18 -0700 |
commit | b82fddcd4603273eec295c2664fa6fbb2c6feeac (patch) | |
tree | 309fab22ca898b733ca3e7c0377d44c62bd3a08c | |
parent | e300dc963798c54d22da47daed4193c3f97ff9ef (diff) |
cubemap: Handle window resize.
Playing with it, one of the 2x2 mipmap failures on 965 appears to have a
translation-from-window-top dependency.
-rw-r--r-- | tests/texturing/cubemap.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/texturing/cubemap.c b/tests/texturing/cubemap.c index 81e3f4864..b93b632c8 100644 --- a/tests/texturing/cubemap.c +++ b/tests/texturing/cubemap.c @@ -240,6 +240,8 @@ piglit_display(void) int i = 0, y_offset = 0; int row_dim = 0; + piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); + /* Clear background to gray */ glClearColor(0.5, 0.5, 0.5, 1.0); glClear(GL_COLOR_BUFFER_BIT); @@ -286,16 +288,4 @@ piglit_init(int argc, char **argv) if (!strcmp(argv[i], "-r300relax")) Hack_r300Relax = 1; } - - /* Set up projection matrix so we can just draw using window - * coordinates. - */ - glMatrixMode( GL_PROJECTION ); - glPushMatrix(); - glLoadIdentity(); - glOrtho( 0, WIN_WIDTH, 0, WIN_HEIGHT, -1, 1 ); - - glMatrixMode( GL_MODELVIEW ); - glPushMatrix(); - glLoadIdentity(); } |