Fix viewport being upside down in OpenGL renderer.

Fixes Bugzilla #2207.
This commit is contained in:
Ryan C. Gordon 2013-11-15 23:20:50 -05:00
parent 4295a92f97
commit 4f39f0115b
1 changed files with 1 additions and 1 deletions

View File

@ -925,7 +925,7 @@ GL_UpdateViewport(SDL_Renderer * renderer)
data->glMatrixMode(GL_PROJECTION);
data->glLoadIdentity();
if (renderer->viewport.w && renderer->viewport.h) {
if (renderer->target) {
if (!renderer->target) {
data->glOrtho((GLdouble) 0,
(GLdouble) renderer->viewport.w,
(GLdouble) 0,