GPU: Upload stencil to latest buffer.

Just being safe.
This commit is contained in:
Unknown W. Brackets committed 2022-11-24 16:33:31 -08:00
1 parent 2e492bf333
commit d243d45741
1 file changed
+3 -2
+3 -2
View File
@@ -135,10 +135,11 @@ bool FramebufferManagerCommon::PerformWriteStencilFromMemory(u32 addr, int size,
return false;
}
VirtualFramebuffer *dstBuffer = 0;
VirtualFramebuffer *dstBuffer = nullptr;
for (size_t i = 0; i < vfbs_.size(); ++i) {
VirtualFramebuffer *vfb = vfbs_[i];
if (vfb->fb_address == addr) {
// TODO: Maybe we should broadcast to all? Most of the time, there's only one.
if (vfb->fb_address == addr && (!dstBuffer || dstBuffer->colorBindSeq < vfb->colorBindSeq)) {
dstBuffer = vfb;
}
}