src/render/opengles2/SDL_render_gles2.c
changeset 9977 f9cd179cf50e
parent 9958 687e118144c7
child 9998 f67cf37e9cd4
     1.1 --- a/src/render/opengles2/SDL_render_gles2.c	Mon Dec 28 15:44:09 2015 -0400
     1.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Mon Dec 28 15:15:58 2015 -0500
     1.3 @@ -418,7 +418,7 @@
     1.4              int w, h;
     1.5  
     1.6              SDL_GetRendererOutputSize(renderer, &w, &h);
     1.7 -            data->glScissor(renderer->viewport.x + rect->x, (h - renderer->viewport.y - renderer->viewport.h) + rect->y, rect->w, rect->h);
     1.8 +            data->glScissor(renderer->viewport.x + rect->x, h - renderer->viewport.y - rect->y - rect->h, rect->w, rect->h);
     1.9          }
    1.10      } else {
    1.11          data->glDisable(GL_SCISSOR_TEST);