SDL_render_vita_gxm.c: Fixed the black screen due to zero cliprect

This commit is contained in:
Wohlstand
2026-02-06 15:27:22 +03:00
committed by Sam Lantinga
parent 75d1d64c75
commit 87a81bd09d

View File

@@ -1049,7 +1049,7 @@ static bool VITA_GXM_RunCommandQueue(SDL_Renderer *renderer, SDL_RenderCommand *
}
}
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;
}