mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 20:28:32 +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;
|
||||
// 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;
|
||||
if constexpr (MG_Global::Common::LogLevel <= MG_Constants::Common::LOG_LEVEL_DEBUG) {
|
||||
|
||||
Reference in New Issue
Block a user