Browse Source

SDL_render_psp.c: Also apply the similar fix to PSP
Since this problem is the same here

(cherry picked from commit c080cc8068eef29ab0151e9916a890620acad395)

Wohlstand 1 month ago
parent
commit
07bf82e39e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/render/psp/SDL_render_psp.c

+ 1 - 1
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;
             }