[Fix] (MG_State/Texture): re-enable multi-miplevels

This commit is contained in:
2025-07-07 10:39:00 +08:00
parent 992ea967a7
commit 20d02b75e1
@@ -340,11 +340,11 @@ namespace MG_GL::GL {
} }
Diligent::Uint32 mipLevels = 1; Diligent::Uint32 mipLevels = 1;
// if (isBaseLevel) { if (isBaseLevel) {
// mipLevels = CalculateMipLevels(width, height); mipLevels = CalculateMipLevels(width, height);
// } else if (pTexture) { } else if (pTexture) {
// mipLevels = pTexture->GetDesc().MipLevels; mipLevels = pTexture->GetDesc().MipLevels;
// } }
Diligent::TextureDesc TexDesc; Diligent::TextureDesc TexDesc;
if constexpr (MG_Global::Common::LogLevel <= MG_Constants::Common::LOG_LEVEL_DEBUG) { if constexpr (MG_Global::Common::LogLevel <= MG_Constants::Common::LOG_LEVEL_DEBUG) {