libsdl-org / SDL

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

Corrupted scaling surface result for float surface types with SDL_SCALEMODE_NEAREST #11534

Open ilyachastikov opened 6 days ago

ilyachastikov commented 6 days ago

At least for SDL_PIXELFORMAT_RGB96_FLOAT and SDL_PIXELFORMAT_RGBA128_FLOAT with SDL_SCALEMODE_NEAREST the result of SDL_ScaleSurface is corrupted. At the same time for SDL_SCALEMODE_LINEAR all works fine. The issue was detected on latest SDL 3 release.