From 61d792e27a83de414d9af838bf8464845e8330b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 12 Sep 2020 15:25:54 +0200 Subject: [PATCH] Re-fix BOF III - accidentally lost the texaddr offset --- GPU/Common/TextureCacheCommon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index ba58ba75b0..91a8cbb5d9 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -471,6 +471,7 @@ TexCacheEntry *TextureCacheCommon::SetTexture(bool force) { int index = GetBestCandidateIndex(candidates); if (index != -1) { nextTexture_ = nullptr; + nextNeedsRebuild_ = false; SetTextureFramebuffer(candidates[index]); return nullptr; } @@ -552,7 +553,7 @@ std::vector TextureCacheCommon::GetFramebufferCandidates(const for (size_t i = 0, n = framebuffers.size(); i < n; ++i) { auto framebuffer = framebuffers[i]; uint32_t fb_addr = channel == NOTIFY_FB_DEPTH ? framebuffer->z_address : framebuffer->fb_address; - FramebufferMatchInfo match = MatchFramebuffer(entry, fb_addr, framebuffer, 0, channel); + FramebufferMatchInfo match = MatchFramebuffer(entry, fb_addr, framebuffer, texAddrOffset, channel); if (match.match == FramebufferMatch::IGNORE) { anyIgnores = true; } else if (match.match != FramebufferMatch::NO_MATCH) {