From 20d02b75e116db7f0f68d782937e9aa75b6e8b6c Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Mon, 7 Jul 2025 10:39:00 +0800 Subject: [PATCH] [Fix] (MG_State/Texture): re-enable multi-miplevels --- MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp b/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp index f078f60f..0b63c87a 100644 --- a/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp +++ b/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp @@ -340,11 +340,11 @@ namespace MG_GL::GL { } Diligent::Uint32 mipLevels = 1; -// if (isBaseLevel) { -// mipLevels = CalculateMipLevels(width, height); -// } else if (pTexture) { -// mipLevels = pTexture->GetDesc().MipLevels; -// } + if (isBaseLevel) { + mipLevels = CalculateMipLevels(width, height); + } else if (pTexture) { + mipLevels = pTexture->GetDesc().MipLevels; + } Diligent::TextureDesc TexDesc; if constexpr (MG_Global::Common::LogLevel <= MG_Constants::Common::LOG_LEVEL_DEBUG) {