TexCache: Correct detaching textures.

This commit is contained in:
Unknown W. Brackets 2020-09-07 15:10:26 -07:00
parent 8a9b4ab40a
commit a817a60382

View file

@ -584,7 +584,7 @@ bool TextureCacheCommon::AttachFramebufferToEntry(TexCacheEntry *entry, u32 texA
if (!anyIgnores) {
// If not set, always detach. They may affect inexact matches.
for (AttachCandidate &candidate : detaches) {
DetachFramebuffer(entry, entry->addr, entry->framebuffer, channel);
DetachFramebuffer(entry, entry->addr, candidate.fb, channel);
}
}