From b444b7de880a45093a16fe380a38a6b60c845333 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Tue, 24 Jun 2025 09:02:50 +0800 Subject: [PATCH] [Fix] (MG_State/GL_Texture): do not automatically generate mipmaps --- 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 4e02b885..01b21ddf 100644 --- a/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp +++ b/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp @@ -327,11 +327,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; TexDesc.Type = Diligent::RESOURCE_DIM_TEX_2D;