enable SDL texture filter for better graphic

This commit is contained in:
sonil 2023-06-23 10:59:51 +08:00
parent fe035d8514
commit f60d0728f5
1 changed files with 2 additions and 0 deletions

View File

@ -374,6 +374,8 @@ static bool createRenderer(int width, int height)
return false; return false;
} }
SDL_SetTextureScaleMode(gSdlTexture, SDL_ScaleModeBest);
Uint32 format; Uint32 format;
if (SDL_QueryTexture(gSdlTexture, &format, NULL, NULL, NULL) != 0) { if (SDL_QueryTexture(gSdlTexture, &format, NULL, NULL, NULL) != 0) {
return false; return false;