From 5af46b47ade420975d2b0fd2f3616cef2bf7acee Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Fri, 19 Dec 2014 20:55:56 +0600 Subject: [PATCH] Fix mip-mapping with zero level. Fixed objects in Paper Mario. --- Textures.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Textures.cpp b/Textures.cpp index 3f6de73d..058bf9b6 100644 --- a/Textures.cpp +++ b/Textures.cpp @@ -1257,6 +1257,12 @@ void TextureCache::update(u32 _t) return; } + if (gDP.otherMode.textureLOD == G_TL_LOD && gSP.texture.level == gSP.texture.tile && _t == 1) { + current[1] = current[0]; + activateTexture(_t, current[_t]); + return; + } + if (gSP.texture.tile == 7 && _t == 0 && gSP.textureTile[0] == gDP.loadTile && gDP.loadTile->loadType == LOADTYPE_BLOCK && gSP.textureTile[0]->tmem == gSP.textureTile[1]->tmem) gSP.textureTile[0] = gSP.textureTile[1];