The scissor rect needs to be updated when the viewport changes in the Metal renderer
parent
3e935aecb9
commit
13155b35b4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue