SDL_render_psp.c: Also apply the similar fix to PSP

Since this problem is the same here
This commit is contained in:
Wohlstand
2026-02-06 15:30:37 +03:00
committed by Sam Lantinga
parent 87a81bd09d
commit a36ef1f187

View File

@@ -1264,7 +1264,7 @@ static bool PSP_RunCommandQueue(SDL_Renderer *renderer, SDL_RenderCommand *cmd,
}
}
if (SDL_memcmp(&data->drawstate.cliprect, rect, sizeof(*rect)) != 0) {
if ((data->drawstate.cliprect_enabled || !data->drawstate.viewport_is_set) && SDL_memcmp(&data->drawstate.cliprect, rect, sizeof(*rect)) != 0) {
SDL_copyp(&data->drawstate.cliprect, rect);
data->drawstate.cliprect_dirty = true;
}