mirror of https://github.com/odrling/Aegisub
Yet another random OpenGL change.
Originally committed to SVN as r878.
This commit is contained in:
parent
304b10b6d5
commit
563ba5ae76
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue