opengles2: Fixed incorrect cliprect state. SDL-ryan-batching-renderer
authorRyan C. Gordon <icculus@icculus.org>
Thu, 04 Oct 2018 20:22:28 -0400
branchSDL-ryan-batching-renderer
changeset 1229596b57a48057c
parent 12294 86b7b00ea2b8
child 12297 d1a491c3ad17
opengles2: Fixed incorrect cliprect state.
src/render/opengles2/SDL_render_gles2.c
     1.1 --- a/src/render/opengles2/SDL_render_gles2.c	Thu Oct 04 20:21:58 2018 -0400
     1.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Thu Oct 04 20:22:28 2018 -0400
     1.3 @@ -969,7 +969,7 @@
     1.4          } else {
     1.5              data->glEnable(GL_SCISSOR_TEST);
     1.6          }
     1.7 -        data->drawstate.cliprect_enabled_dirty = SDL_TRUE;
     1.8 +        data->drawstate.cliprect_enabled_dirty = SDL_FALSE;
     1.9      }
    1.10  
    1.11      if (data->drawstate.cliprect_enabled && data->drawstate.cliprect_dirty) {
    1.12 @@ -979,6 +979,7 @@
    1.13                          data->drawstate.target ? viewport->y + rect->y : data->drawstate.drawableh - viewport->y - rect->y - rect->h,
    1.14                          rect->w, rect->h);
    1.15          SDL_memcpy(&data->drawstate.cliprect, rect, sizeof (SDL_Rect));
    1.16 +        data->drawstate.cliprect_dirty = SDL_FALSE;
    1.17      }
    1.18  
    1.19      if (texture != data->drawstate.texture) {