Inlined expression for consistency in render source.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 13 May 2013 22:45:06 +0200
changeset 7173 fc45e51373ea
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
--- a/src/render/opengles/SDL_render_gles.c	Sun May 12 15:00:00 2013 -0700
+++ b/src/render/opengles/SDL_render_gles.c	Mon May 13 22:45:06 2013 +0200
@@ -645,8 +645,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);
     }
--- a/src/render/opengles2/SDL_render_gles2.c	Sun May 12 15:00:00 2013 -0700
+++ b/src/render/opengles2/SDL_render_gles2.c	Mon May 13 22:45:06 2013 +0200
@@ -288,8 +288,7 @@
 
     if (!SDL_RectEmpty(rect)) {
         rdata->glEnable(GL_SCISSOR_TEST);
-        int lowerLeft = renderer->viewport.h - rect->y - rect->h;
-        rdata->glScissor(rect->x, lowerLeft, rect->w, rect->h);
+        rdata->glScissor(rect->x, renderer->viewport.h - rect->y - rect->h, rect->w, rect->h);
     } else {
         rdata->glDisable(GL_SCISSOR_TEST);
     }