From 9e151e2f3f837081a5d3a3fb48310665cecb4aca Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Tue, 29 Sep 2026 13:34:34 +0200 Subject: [PATCH] Fixed texture blend type on linux. --- core/host/linux/texture.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/host/linux/texture.c b/core/host/linux/texture.c index 3b293ed..aaad3a7 100644 --- a/core/host/linux/texture.c +++ b/core/host/linux/texture.c @@ -54,6 +54,13 @@ texture_t *load_texture(void) } SDL_DestroySurface(tmp_surface); + + if(!SDL_SetTextureScaleMode(texture, SDL_SCALEMODE_NEAREST)) + { + error_printf("Failed to set texture scale mode."); + return NULL; + } + return texture; failure: