Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed handling of the initial window size.
  • Loading branch information
llmike committed Oct 13, 2009
1 parent 1992868 commit cb7358f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testgles.c
Expand Up @@ -242,7 +242,7 @@ main(int argc, char *argv[])
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);
Expand Down

0 comments on commit cb7358f

Please sign in to comment.