From b7f30edb23d55ac1a4ae99b37530d7fc8174364f Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Mon, 5 Aug 2024 00:01:06 +0700 Subject: [PATCH] Correct CheckForFrameBufferTexture: in case of texrect, its tile can be less than gSP.texture.tile. In that case "nTile = gSP.texture.tile" causes skipping of texrect tile, so normal texture will be used instead of frame buffer one. Fixed Pokemon Puzzle 3D puzzle issue #2852 --- src/gDP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gDP.cpp b/src/gDP.cpp index 96ae2cdc9..adf9d4aa8 100644 --- a/src/gDP.cpp +++ b/src/gDP.cpp @@ -441,7 +441,7 @@ bool CheckForFrameBufferTexture(u32 _address, u32 _width, u32 _bytes) break; } - for (u32 nTile = gSP.texture.tile; nTile < 6; ++nTile) { + for (u32 nTile = 0; nTile < 6; ++nTile) { if (gDP.tiles[nTile].tmem == gDP.loadTile->tmem) { gDPTile & curTile = gDP.tiles[nTile]; curTile.textureMode = gDP.loadTile->textureMode;