Fixed building on Visual Studio.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 12 May 2013 14:25:38 +0200
changeset 7171929700967727
parent 7170 d5f5a491fe49
child 7172 b3569dff1c6e
Fixed building on Visual Studio.

Buildbot
src/render/opengl/SDL_render_gl.c
     1.1 --- a/src/render/opengl/SDL_render_gl.c	Sun May 12 13:42:20 2013 +0200
     1.2 +++ b/src/render/opengl/SDL_render_gl.c	Sun May 12 14:25:38 2013 +0200
     1.3 @@ -794,8 +794,7 @@
     1.4  
     1.5      if (!SDL_RectEmpty(rect)) {
     1.6          data->glEnable(GL_SCISSOR_TEST);
     1.7 -        int lowerLeft = renderer->viewport.h - rect->y - rect->h;
     1.8 -        data->glScissor(rect->x, lowerLeft, rect->w, rect->h);
     1.9 +        data->glScissor(rect->x, renderer->viewport.h - rect->y - rect->h, rect->w, rect->h);
    1.10      } else {
    1.11          data->glDisable(GL_SCISSOR_TEST);
    1.12      }