Set correct mipmap level for UI textures (#13)

This commit is contained in:
Anders Jenbo 2025-06-29 20:46:29 +02:00 committed by GitHub
parent 4d47eebad2
commit 53407adf17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);