Palettized textures will always use SDL_SCALEMODE_NEAREST.

Our algorithm for pixel art doesn't work on 8-bit images, needs further investigation.

Fixes https://github.com/libsdl-org/SDL/issues/14129
This commit is contained in:
Sam Lantinga
2025-10-03 14:29:47 -07:00
parent d333044462
commit 32668c4ddd
2 changed files with 5 additions and 7 deletions

View File

@@ -1234,8 +1234,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetTextureBlendMode(SDL_Texture *texture, S
* The default texture scale mode is SDL_SCALEMODE_LINEAR.
*
* If the scale mode is not supported, the closest supported mode is chosen.
* Palettized textures will use SDL_SCALEMODE_PIXELART instead of
* SDL_SCALEMODE_LINEAR.
* Palettized textures will always use SDL_SCALEMODE_NEAREST.
*
* \param texture the texture to update.
* \param scaleMode the SDL_ScaleMode to use for texture scaling.