Skip to content

Commit

Permalink
Fix viewport being upside down in OpenGL renderer.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #2207.
  • Loading branch information
icculus committed Nov 16, 2013
1 parent 4295a92 commit 4f39f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/opengl/SDL_render_gl.c
Expand Up @@ -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,
Expand Down

0 comments on commit 4f39f01

Please sign in to comment.