Fixed building on Visual Studio.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 12 May 2013 14:25:38 +0200
changeset 7171 929700967727
parent 7170 d5f5a491fe49
child 7172 b3569dff1c6e
Fixed building on Visual Studio. Buildbot
src/render/opengl/SDL_render_gl.c
--- a/src/render/opengl/SDL_render_gl.c	Sun May 12 13:42:20 2013 +0200
+++ b/src/render/opengl/SDL_render_gl.c	Sun May 12 14:25:38 2013 +0200
@@ -794,8 +794,7 @@
 
     if (!SDL_RectEmpty(rect)) {
         data->glEnable(GL_SCISSOR_TEST);
-        int lowerLeft = renderer->viewport.h - rect->y - rect->h;
-        data->glScissor(rect->x, lowerLeft, rect->w, rect->h);
+        data->glScissor(rect->x, renderer->viewport.h - rect->y - rect->h, rect->w, rect->h);
     } else {
         data->glDisable(GL_SCISSOR_TEST);
     }