1
0
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:
Sergey Lipskiy 2015-03-14 20:56:17 +06:00
parent 2edc1bb8e0
commit 35ea6f28fb

View File

@ -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;