src/render/opengl/SDL_render_gl.c
changeset 7169 d27e9ee7310f
parent 7161 1619292eec30
child 7171 929700967727
     1.1 --- a/src/render/opengl/SDL_render_gl.c	Sun May 12 13:25:34 2013 +0200
     1.2 +++ b/src/render/opengl/SDL_render_gl.c	Sun May 12 13:40:02 2013 +0200
     1.3 @@ -794,7 +794,8 @@
     1.4  
     1.5      if (!SDL_RectEmpty(rect)) {
     1.6          data->glEnable(GL_SCISSOR_TEST);
     1.7 -        data->glScissor(rect->x, rect->h - rect->y, rect->w, rect->h);
     1.8 +        int lowerLeft = renderer->viewport.h - rect->y - rect->h;
     1.9 +        data->glScissor(rect->x, lowerLeft, rect->w, rect->h);
    1.10      } else {
    1.11          data->glDisable(GL_SCISSOR_TEST);
    1.12      }