mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 14:18:31 +09:00
[Fix] (MG_State/Texture): re-enable multi-miplevels
This commit is contained in:
@@ -340,11 +340,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;
|
||||||
if constexpr (MG_Global::Common::LogLevel <= MG_Constants::Common::LOG_LEVEL_DEBUG) {
|
if constexpr (MG_Global::Common::LogLevel <= MG_Constants::Common::LOG_LEVEL_DEBUG) {
|
||||||
|
|||||||
Reference in New Issue
Block a user