Fixed texture blend type on linux.

This commit is contained in:
Ulysse Cura 2026-09-29 13:34:34 +02:00
parent 825c768fab
commit 9e151e2f3f
1 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,13 @@ texture_t *load_texture(void)
} }
SDL_DestroySurface(tmp_surface); SDL_DestroySurface(tmp_surface);
if(!SDL_SetTextureScaleMode(texture, SDL_SCALEMODE_NEAREST))
{
error_printf("Failed to set texture scale mode.");
return NULL;
}
return texture; return texture;
failure: failure: