Skip to content

Commit

Permalink
The scissor rect needs to be updated when the viewport changes in the…
Browse files Browse the repository at this point in the history
… Metal renderer
  • Loading branch information
slouken committed Feb 10, 2020
1 parent 3e935ae commit 13155b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/render/metal/SDL_render_metal.m
Expand Up @@ -1362,6 +1362,7 @@ - (void)dealloc
SDL_memcpy(&statecache.viewport, &cmd->data.viewport.rect, sizeof (statecache.viewport));
statecache.projection_offset = cmd->data.viewport.first;
statecache.viewport_dirty = SDL_TRUE;
statecache.cliprect_dirty = SDL_TRUE;
break;
}

Expand Down

0 comments on commit 13155b3

Please sign in to comment.