Procházet zdrojové kódy

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

Wohlstand před 3 týdny
rodič
revize
c080cc8068
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);
                 SDL_copyp(&data->drawstate.cliprect, rect);
                 data->drawstate.cliprect_dirty = SDL_TRUE;
                 data->drawstate.cliprect_dirty = SDL_TRUE;
             }
             }