Closed gonetz closed 2 years ago
@standard-two-simplex please check.
const CachedTexture * _pTexture = textureCache().current[1];
if (_pTexture == nullptr)
uMaxTile.set(gSP.texture.level, _force);
else
uMaxTile.set(_pTexture->max_level > 0 ? gSP.texture.level : std::min(gSP.texture.level, 1u), _force);
What was the reason for this? I believe uMaxTile should be gSP.texture.level always.
It seems it is working fine.
What was the reason for this? I believe uMaxTile should be gSP.texture.level always.
I agree. It is probably a rudiment from the older mipmap implementation.
Edit: it is for HD textures, which have either detailed + first mipmap level, or level1 + level2
Fix updated. Previous variant caused issues with Zelda MM HD pack.
…led texture enabled