From 53407adf1745b0518b0a3d4699c626133a007ccd Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 29 Jun 2025 20:46:29 +0200 Subject: [PATCH] Set correct mipmap level for UI textures (#13) --- miniwin/src/d3drm/backends/citro3d/renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniwin/src/d3drm/backends/citro3d/renderer.cpp b/miniwin/src/d3drm/backends/citro3d/renderer.cpp index 6693c3c1..18609dee 100644 --- a/miniwin/src/d3drm/backends/citro3d/renderer.cpp +++ b/miniwin/src/d3drm/backends/citro3d/renderer.cpp @@ -195,7 +195,7 @@ static bool ConvertAndUploadTexture(C3D_Tex* tex, SDL_Surface* originalSurface, params.width = width; params.height = height; params.format = GPU_RGBA8; - params.maxLevel = 4; + params.maxLevel = isUI ? 0 : 4; params.type = GPU_TEX_2D; if (!C3D_TexInitWithParams(tex, nullptr, params)) { SDL_DestroySurface(resized);