UI: Rebind the backbuffer when drawing UI.

In case it was unbound after copying to display, such as from screen
recording.  See #12305.
This commit is contained in:
Unknown W. Brackets 2020-03-15 09:21:55 -07:00
parent d0e2aa3a4f
commit c430fee784

View file

@ -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();