Yet another random OpenGL change.

Originally committed to SVN as r878.
This commit is contained in:
Rodrigo Braz Monteiro 2007-01-22 20:48:45 +00:00
parent 304b10b6d5
commit 563ba5ae76
1 changed files with 3 additions and 1 deletions

View File

@ -139,9 +139,11 @@ void VideoDisplay::Render() {
// Set viewport
glEnable(GL_TEXTURE_2D);
glMatrixMode(GL_PROJECTION);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glViewport(0,0,w,h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0.0f,sw,sh,0.0f,-1000.0f,1000.0f);
glMatrixMode(GL_MODELVIEW);