diff test/testgles.c @ 3397:c64ae6ee6a6d

Fixed handling of the initial window size.
author Mike Gorchak <lestat@i.com.ua>
date Tue, 13 Oct 2009 18:14:22 +0000
parents c18c03927a77
children 5ecc05616f39
line wrap: on
line diff
--- a/test/testgles.c	Tue Oct 13 11:26:40 2009 +0000
+++ b/test/testgles.c	Tue Oct 13 18:14:22 2009 +0000
@@ -242,7 +242,7 @@
             continue;
         }
 
-        glViewport(0, 0, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT);
+        glViewport(0, 0, state->window_w, state->window_h);
         glMatrixMode(GL_PROJECTION);
         glLoadIdentity();
         glOrthof(-2.0, 2.0, -2.0, 2.0, -20.0, 20.0);