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:
parent
d0e2aa3a4f
commit
c430fee784
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue