Skip to content

Commit

Permalink
Correct CheckForFrameBufferTexture:
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gonetz committed Aug 4, 2024
1 parent f456916 commit b7f30ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gDP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b7f30ed

Please sign in to comment.