mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
GPU: Upload stencil to latest buffer.
Just being safe.
This commit is contained in:
1 parent
2e492bf333
commit
d243d45741
1 file changed
+3
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user