mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 13:48:30 +09:00
[Fix] (MG_State/Texture): get rid of 0.25 max lod clamp
This commit is contained in:
@@ -334,6 +334,9 @@ namespace MG_GL::GL {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
Diligent::TextureDesc TexDesc;
|
Diligent::TextureDesc TexDesc;
|
||||||
|
if constexpr (MG_Global::Common::LogLevel <= MG_Constants::Common::LOG_LEVEL_DEBUG) {
|
||||||
|
TexDesc.Name = std::format("GL Texture {}", boundTextureID).c_str();
|
||||||
|
}
|
||||||
TexDesc.Type = Diligent::RESOURCE_DIM_TEX_2D;
|
TexDesc.Type = Diligent::RESOURCE_DIM_TEX_2D;
|
||||||
TexDesc.Width = width;
|
TexDesc.Width = width;
|
||||||
TexDesc.Height = height;
|
TexDesc.Height = height;
|
||||||
@@ -553,7 +556,7 @@ namespace MG_GL::GL {
|
|||||||
SamDesc.MinLOD = (float)param;
|
SamDesc.MinLOD = (float)param;
|
||||||
break;
|
break;
|
||||||
case GL_TEXTURE_MAX_LOD:
|
case GL_TEXTURE_MAX_LOD:
|
||||||
SamDesc.MaxLOD = std::max((float)param, 0.25f);
|
SamDesc.MaxLOD = (float)param;
|
||||||
break;
|
break;
|
||||||
case GL_TEXTURE_COMPARE_FUNC:
|
case GL_TEXTURE_COMPARE_FUNC:
|
||||||
SamDesc.ComparisonFunc = ConvertComparsionFunc(param);
|
SamDesc.ComparisonFunc = ConvertComparsionFunc(param);
|
||||||
|
|||||||
Reference in New Issue
Block a user