Fix viewport being upside down in OpenGL renderer.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 15 Nov 2013 23:20:50 -0500
changeset 79926558e2b68c03
parent 7990 a05a48e493c0
child 7993 771138df6c62
Fix viewport being upside down in OpenGL renderer.

Fixes Bugzilla #2207.
src/render/opengl/SDL_render_gl.c
     1.1 --- a/src/render/opengl/SDL_render_gl.c	Thu Nov 14 22:26:49 2013 -0800
     1.2 +++ b/src/render/opengl/SDL_render_gl.c	Fri Nov 15 23:20:50 2013 -0500
     1.3 @@ -925,7 +925,7 @@
     1.4      data->glMatrixMode(GL_PROJECTION);
     1.5      data->glLoadIdentity();
     1.6      if (renderer->viewport.w && renderer->viewport.h) {
     1.7 -        if (renderer->target) {
     1.8 +        if (!renderer->target) {
     1.9              data->glOrtho((GLdouble) 0,
    1.10                            (GLdouble) renderer->viewport.w,
    1.11                            (GLdouble) 0,