GPU: Mask away unused bits in framebuf/zbuf ptr.

Lower 4 bits are ignored during rendering, and mirrors (even even the 8
bit at the top) are ignored.
This commit is contained in:
Unknown W. Brackets committed 2022-10-02 20:44:35 -07:00
1 parent bc1975bc99
commit b9b59f7806
6 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -569,7 +569,7 @@ void DrawEngineVulkan::DoFlush() {
textureCache_->SetTexture();
gstate_c.Clean(DIRTY_TEXTURE_IMAGE | DIRTY_TEXTURE_PARAMS);
textureNeedsApply = true;
} else if (gstate.getTextureAddress(0) == ((gstate.getFrameBufRawAddress() | 0x04000000) & 0x3FFFFFFF)) {
} else if (gstate.getTextureAddress(0) == (gstate.getFrameBufRawAddress() | 0x04000000)) {
// This catches the case of clearing a texture.
gstate_c.Dirty(DIRTY_TEXTURE_IMAGE);
}