mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 20:58:31 +09:00
[Fix] (MG_State/GL_Texture): do not automatically generate mipmaps
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user