mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Set correct mipmap level for UI textures (#13)
This commit is contained in:
parent
4d47eebad2
commit
53407adf17
@ -195,7 +195,7 @@ static bool ConvertAndUploadTexture(C3D_Tex* tex, SDL_Surface* originalSurface,
|
|||||||
params.width = width;
|
params.width = width;
|
||||||
params.height = height;
|
params.height = height;
|
||||||
params.format = GPU_RGBA8;
|
params.format = GPU_RGBA8;
|
||||||
params.maxLevel = 4;
|
params.maxLevel = isUI ? 0 : 4;
|
||||||
params.type = GPU_TEX_2D;
|
params.type = GPU_TEX_2D;
|
||||||
if (!C3D_TexInitWithParams(tex, nullptr, params)) {
|
if (!C3D_TexInitWithParams(tex, nullptr, params)) {
|
||||||
SDL_DestroySurface(resized);
|
SDL_DestroySurface(resized);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user