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

#14645

(cherry picked from commit 2956d55797)
This commit is contained in:
Wohlstand
2026-02-06 13:45:58 +03:00
committed by Sam Lantinga
parent d2995655d5
commit a2a4c2d439

View File

@@ -1017,7 +1017,7 @@ static int VITA_GXM_RunCommandQueue(SDL_Renderer *renderer, SDL_RenderCommand *c
}
}
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 = SDL_TRUE;
}