GPU: Fix crash on overlap copy w/o cur target.

This commit is contained in:
Unknown W. Brackets committed 2022-09-06 18:55:25 -07:00
1 parent ae23c3c266
commit b4e1f6d902
1 file changed
+1 -1
+1 -1
View File
@@ -810,7 +810,7 @@ void FramebufferManagerCommon::CopyToColorFromOverlappingFramebuffers(VirtualFra
}
}
if (dst != currentRenderVfb_ && tookActions) {
if (currentRenderVfb_ && dst != currentRenderVfb_ && tookActions) {
// Will probably just change the name of the current renderpass, since one was started by the reinterpret itself.
draw_->BindFramebufferAsRenderTarget(currentRenderVfb_->fbo, { Draw::RPAction::KEEP, Draw::RPAction::KEEP, Draw::RPAction::KEEP }, "After Reinterpret");
}