1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Do not load mip-map levels if current combiner does not use LOD.

Workaround for grass in Mario Tennis intro.
This commit is contained in:
Sergey Lipskiy 2021-08-25 15:41:14 +07:00
parent c7701d16c3
commit 23ce26dbc4

View File

@ -1109,7 +1109,7 @@ void TextureCache::_load(u32 _tile, CachedTexture *_pTexture)
bool force32bitFormat = false;
_pTexture->max_level = 0;
if (config.generalEmulation.enableLOD != 0 && gSP.texture.level > 1 && _tile > 0) {
if (config.generalEmulation.enableLOD != 0 && currentCombiner()->usesLOD() && gSP.texture.level > 1 && _tile > 0) {
_pTexture->max_level = gDP.otherMode.textureDetail == G_TD_DETAIL ?
static_cast<u8>(gSP.texture.level) :
static_cast<u8>(gSP.texture.level - 1);