This commit is contained in:
sonilyan 2024-04-21 15:28:35 +03:00 committed by GitHub
commit c25f2a0f61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

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