The scissor rect needs to be updated when the viewport changes in the Metal renderer

Sam Lantinga 2020-02-10 09:42:53 -08:00
parent 3e935aecb9
commit 13155b35b4
1 changed files with 1 additions and 0 deletions

View File

@ -1362,6 +1362,7 @@ METAL_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *ver
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;
}