From 433a5ac39d98a649fe518e72eabb7f1d7203cabe Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Tue, 24 Jun 2025 16:26:09 +0800 Subject: [PATCH] [Fix] (MG_State/GL_Texture): no need to clamp max lod min value --- MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp b/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp index 01b21ddf..843e630a 100644 --- a/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp +++ b/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp @@ -474,7 +474,7 @@ namespace MG_GL::GL { SamDesc.MinLOD = (float)param; break; case GL_TEXTURE_MAX_LOD: - SamDesc.MaxLOD = std::max(param, 0.25f); + SamDesc.MaxLOD = param; break; case GL_TEXTURE_COMPARE_FUNC: SamDesc.ComparisonFunc = ConvertComparsionFunc(param);