From b4e1f6d902c5ed19f5bab3804e6be4e6b30671e0 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 6 Sep 2022 18:54:52 -0700 Subject: [PATCH] GPU: Fix crash on overlap copy w/o cur target. --- GPU/Common/FramebufferManagerCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/FramebufferManagerCommon.cpp b/GPU/Common/FramebufferManagerCommon.cpp index d907f1ac2f..3cbe6543f0 100644 --- a/GPU/Common/FramebufferManagerCommon.cpp +++ b/GPU/Common/FramebufferManagerCommon.cpp @@ -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"); }