mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +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;
|
Diligent::Uint32 mipLevels = 1;
|
||||||
if (isBaseLevel) {
|
// if (isBaseLevel) {
|
||||||
mipLevels = CalculateMipLevels(width, height);
|
// mipLevels = CalculateMipLevels(width, height);
|
||||||
} else if (pTexture) {
|
// } else if (pTexture) {
|
||||||
mipLevels = pTexture->GetDesc().MipLevels;
|
// mipLevels = pTexture->GetDesc().MipLevels;
|
||||||
}
|
// }
|
||||||
|
|
||||||
Diligent::TextureDesc TexDesc;
|
Diligent::TextureDesc TexDesc;
|
||||||
TexDesc.Type = Diligent::RESOURCE_DIM_TEX_2D;
|
TexDesc.Type = Diligent::RESOURCE_DIM_TEX_2D;
|
||||||
|
|||||||
Reference in New Issue
Block a user