Fix crash when toggling Skip buffer effects while paused

This commit is contained in:
Henrik Rydgård committed 2024-02-01 19:59:01 +01:00
1 parent da5e29f5dc
commit 337de548b8
1 file changed
+3 -2
+3 -2
View File
@@ -1352,8 +1352,9 @@ ScreenRenderFlags EmuScreen::render(ScreenRenderMode mode) {
PSP_BeginHostFrame();
gpu->CopyDisplayToOutput(true);
PSP_EndHostFrame();
} else {
draw->BindFramebufferAsRenderTarget(nullptr, { RPAction::CLEAR, RPAction::CLEAR, RPAction::CLEAR, }, "EmuScreen_Stepping");
}
if (!gpu->PresentedThisFrame()) {
draw->BindFramebufferAsRenderTarget(nullptr, { RPAction::CLEAR, RPAction::CLEAR, RPAction::CLEAR, }, "EmuScreen_Behind");
}
// Need to make sure the UI texture is available, for "darken".
screenManager()->getUIContext()->BeginFrame();