I am working on a game with SDL2 and having trouble turning off linear filtering when upscaling textures.
My game has a bunch of 32x32 tiles. I used SDL_RenderSetLogicalSize
so that there is a one-to-one pixel mapping (i.e. my logical size is n * 32
x m * 32
.)
However, when the the whole scene is upscaled to fit the actual screen, it seems to be interpolated (blurry).
I saw these two other posts (1, 2) which recommended using SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "0");
. I did that, but nothing seems to change at all. It returns true
and it is in fact changing the hint, but the rendering just doesn't change at all. I even tried setting it with priority but nothing changes.
Any idea how to fix this? I am on Windows if that's relavent.
SDL_SetHint
? \$\endgroup\$