فهرست منبع

render: Don't try to drop draws outside of the viewport.

It didn't take scale into account, and the backends would need to do clipping
anyhow, so let the system figure that out for us at the lower level.

Fixes #11318.
Ryan C. Gordon 9 ماه پیش
والد
کامیت
bf85320947
1فایلهای تغییر یافته به همراه0 افزوده شده و 3 حذف شده
  1. 0 3
      src/render/SDL_render.c

+ 0 - 3
src/render/SDL_render.c

@@ -3898,9 +3898,6 @@ bool SDL_RenderTexture(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_F
 
     GetRenderViewportSize(renderer, &real_dstrect);
     if (dstrect) {
-        if (!SDL_HasRectIntersectionFloat(dstrect, &real_dstrect)) {
-            return true;
-        }
         real_dstrect = *dstrect;
     }