Inlined expression for consistency in render source.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 13 May 2013 22:45:06 +0200
changeset 7173fc45e51373ea
parent 7172 b3569dff1c6e
child 7174 3dfec8235a71
Inlined expression for consistency in render source.
src/render/opengles/SDL_render_gles.c
src/render/opengles2/SDL_render_gles2.c
     1.1 --- a/src/render/opengles/SDL_render_gles.c	Sun May 12 15:00:00 2013 -0700
     1.2 +++ b/src/render/opengles/SDL_render_gles.c	Mon May 13 22:45:06 2013 +0200
     1.3 @@ -645,8 +645,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      }
     2.1 --- a/src/render/opengles2/SDL_render_gles2.c	Sun May 12 15:00:00 2013 -0700
     2.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Mon May 13 22:45:06 2013 +0200
     2.3 @@ -288,8 +288,7 @@
     2.4  
     2.5      if (!SDL_RectEmpty(rect)) {
     2.6          rdata->glEnable(GL_SCISSOR_TEST);
     2.7 -        int lowerLeft = renderer->viewport.h - rect->y - rect->h;
     2.8 -        rdata->glScissor(rect->x, lowerLeft, rect->w, rect->h);
     2.9 +        rdata->glScissor(rect->x, renderer->viewport.h - rect->y - rect->h, rect->w, rect->h);
    2.10      } else {
    2.11          rdata->glDisable(GL_SCISSOR_TEST);
    2.12      }