Fixed handling of the initial window size.
authorMike Gorchak <lestat@i.com.ua>
Tue, 13 Oct 2009 18:14:22 +0000
changeset 3397c64ae6ee6a6d
parent 3396 d6b79fc83362
child 3398 5ecc05616f39
Fixed handling of the initial window size.
test/testgles.c
     1.1 --- a/test/testgles.c	Tue Oct 13 11:26:40 2009 +0000
     1.2 +++ b/test/testgles.c	Tue Oct 13 18:14:22 2009 +0000
     1.3 @@ -242,7 +242,7 @@
     1.4              continue;
     1.5          }
     1.6  
     1.7 -        glViewport(0, 0, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT);
     1.8 +        glViewport(0, 0, state->window_w, state->window_h);
     1.9          glMatrixMode(GL_PROJECTION);
    1.10          glLoadIdentity();
    1.11          glOrthof(-2.0, 2.0, -2.0, 2.0, -20.0, 20.0);