From c430fee784ff41fdfbf63398ce97c2ba393821c9 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 15 Mar 2020 09:21:55 -0700 Subject: [PATCH] UI: Rebind the backbuffer when drawing UI. In case it was unbound after copying to display, such as from screen recording. See #12305. --- UI/EmuScreen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index 2708cd32fd..d56d8dd9a5 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -1403,6 +1403,8 @@ void EmuScreen::render() { return; if (hasVisibleUI()) { + // In most cases, this should already be bound and a no-op. + thin3d->BindFramebufferAsRenderTarget(nullptr, { RPAction::KEEP, RPAction::DONT_CARE, RPAction::DONT_CARE }); cardboardDisableButton_->SetVisibility(g_Config.bEnableCardboardVR ? UI::V_VISIBLE : UI::V_GONE); screenManager()->getUIContext()->BeginFrame(); renderUI();