[Fix] (MG_State/GL_Texture): do not automatically generate mipmaps

This commit is contained in:
2025-06-24 09:02:50 +08:00
parent 94dfdb6905
commit b444b7de88
@@ -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;