From 31553a3532758f1cdd05c97a7cb3aabdd92e0e14 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sun, 13 Feb 2022 20:58:03 +0700 Subject: [PATCH] Correct load of mip-map textures with accurate path when mip-map emulation is disabled. Fast path totally disables mip-map calculations when "mip-map emulation" option is disabled. Accurate path works differently. It just set lod to 1.0, which forces most detailed textures to be used. However, the remained calculations are performed and the mip-map tiles still must be in texture atlas format. Fixed black textures in GE when mip-map emulation is disabled, see #2641 --- src/Textures.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Textures.cpp b/src/Textures.cpp index d98b329d..ac037755 100644 --- a/src/Textures.cpp +++ b/src/Textures.cpp @@ -1595,7 +1595,7 @@ void TextureCache::_loadAccurate(u32 _tile, CachedTexture *_pTexture) bool force32bitFormat = false; _pTexture->max_level = 0; - if (config.generalEmulation.enableLOD != 0 && currentCombiner()->usesLOD() && gSP.texture.level > 1 && _tile > 0) { + if (currentCombiner()->usesLOD() && gSP.texture.level > 1 && _tile > 0) { _pTexture->max_level = gDP.otherMode.textureDetail == G_TD_DETAIL ? static_cast(gSP.texture.level) : static_cast(gSP.texture.level - 1);