Fixed handling of the initial window size.
authorMike Gorchak <lestat@i.com.ua>
Tue, 13 Oct 2009 18:14:22 +0000
changeset 3397 c64ae6ee6a6d
parent 3396 d6b79fc83362
child 3398 5ecc05616f39
Fixed handling of the initial window size.
test/testgles.c
--- 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);