Skip to content

Commit

Permalink
UI: Rebind the backbuffer when drawing UI.
Browse files Browse the repository at this point in the history
In case it was unbound after copying to display, such as from screen
recording.  See #12305.
  • Loading branch information
unknownbrackets committed Mar 15, 2020
1 parent d0e2aa3 commit c430fee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UI/EmuScreen.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit c430fee

Please sign in to comment.