mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Load mip-mapped texture only when LOD emulation is enabled.
This commit is contained in:
parent
2edc1bb8e0
commit
35ea6f28fb
|
@ -849,7 +849,7 @@ void TextureCache::_load(u32 _tile, CachedTexture *_pTexture)
|
|||
pDest = (u32*)malloc(_pTexture->textureBytes);
|
||||
|
||||
GLint mipLevel = 0, maxLevel = 0;
|
||||
if (gSP.texture.level > gSP.texture.tile + 1)
|
||||
if (config.generalEmulation.enableLOD != 0 && gSP.texture.level > gSP.texture.tile + 1)
|
||||
maxLevel = _tile == 0 ? 0 : gSP.texture.level - gSP.texture.tile - 1;
|
||||
|
||||
_pTexture->max_level = maxLevel;
|
||||
|
|
Loading…
Reference in New Issue
Block a user