Skip to content
Permalink
Browse files

Fix viewport being upside down in OpenGL renderer.

Fixes Bugzilla #2207.
  • Loading branch information
icculus committed Nov 16, 2013
1 parent 4295a92 commit 4f39f0115b4700829b1fe2f49e70f3c8b29d114b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/render/opengl/SDL_render_gl.c
@@ -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,

0 comments on commit 4f39f01

Please sign in to comment.