libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
10.18k stars 1.86k forks source link

SDL_RenderTexture calls getting dropped #11490

Open kyle-sylvestre opened 1 week ago

kyle-sylvestre commented 1 week ago

Some of my texture calls near the bottom of the screen are getting dropped. After debugging I found that these lines are responsible. This is happening on devices where SDL_SetRenderScale is less than one. I believe it was due to GetRenderViewportSize being changed in https://github.com/libsdl-org/SDL/commit/ef758d05c154b6c052918de9f20a83d14b2065cd

https://github.com/libsdl-org/SDL/blob/e027b85cc457556071cbb2f3f1bcf8803c1bc001/src/render/SDL_render.c#L3904-L3910

AntTheAlchemist commented 1 week ago

Same bug as #11318