The scissor rect needs to be updated when the viewport changes in the Metal renderer
authorSam Lantinga <slouken@libsdl.org>
Mon, 10 Feb 2020 09:42:53 -0800
changeset 1349722308b7ba06c
parent 13496 045f218436fe
child 13498 0c915d307499
The scissor rect needs to be updated when the viewport changes in the Metal renderer
src/render/metal/SDL_render_metal.m
     1.1 --- a/src/render/metal/SDL_render_metal.m	Sun Feb 09 11:44:22 2020 -0800
     1.2 +++ b/src/render/metal/SDL_render_metal.m	Mon Feb 10 09:42:53 2020 -0800
     1.3 @@ -1362,6 +1362,7 @@
     1.4                  SDL_memcpy(&statecache.viewport, &cmd->data.viewport.rect, sizeof (statecache.viewport));
     1.5                  statecache.projection_offset = cmd->data.viewport.first;
     1.6                  statecache.viewport_dirty = SDL_TRUE;
     1.7 +                statecache.cliprect_dirty = SDL_TRUE;
     1.8                  break;
     1.9              }
    1.10