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) {