Przeglądaj źródła

SDL_render_psp.c: Also apply the similar fix to PSP

Since this problem is the same here

(cherry picked from commit a36ef1f1871c5aa366aabe4e31f003befeb503fa)
Wohlstand 1 miesiąc temu
rodzic
commit
000d56702e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/render/psp/SDL_render_psp.c

+ 1 - 1
src/render/psp/SDL_render_psp.c

@@ -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;
             }