SDL_RenderTextureRotated() is used to rotate or flip sprite textures, doesn’t work properly with the KWIN compositor. The sprite goes blank when trying to flip or rotate the texture. If someone could inform KDE Devs; I have trouble getting an account, keeps saying the password is wrong.
If you look at the SDL3 GITHUB issues from June/2025 the SDL3 Devs are aware.
I asked Gemini AI and it tells me this:
The problem exists because the KDE compositor, KWin, is not correctly or robustly handling the transformed drawing commands it receives from the underlying graphics system when an application (like your SDL program) uses advanced features like rotation or flipping.
I hope KDE can fix this problem. I am using CachyOS latest kernel and KDE PLASMA 6.5.1
There is a SDL3 example to confirm which uses an ARROW graphic and by press 1 2 3 or arrow keys if will flip the sprite.