1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-30 08:24:05 +00:00

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
This commit is contained in:
Sergey Lipskiy 2022-02-13 20:58:03 +07:00
parent bf7dd027ba
commit 31553a3532

View File

@ -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<u8>(gSP.texture.level) :
static_cast<u8>(gSP.texture.level - 1);