From 07bf82e39e4f3ba5a52d159fe53c2dc165442b12 Mon Sep 17 00:00:00 2001
From: Wohlstand <[EMAIL REDACTED]>
Date: Fri, 6 Feb 2026 15:32:12 +0300
Subject: [PATCH] SDL_render_psp.c: Also apply the similar fix to PSP Since
this problem is the same here
(cherry picked from commit c080cc8068eef29ab0151e9916a890620acad395)
---
src/render/psp/SDL_render_psp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/render/psp/SDL_render_psp.c b/src/render/psp/SDL_render_psp.c
index fb7a53e1f5ada..7d19a3f37e899 100644
--- a/src/render/psp/SDL_render_psp.c
+++ b/src/render/psp/SDL_render_psp.c
@@ -1223,7 +1223,7 @@ static int PSP_RunCommandQueue(SDL_Renderer *renderer, SDL_RenderCommand *cmd, v
}
}
- 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;
}