Skip to content

Commit

Permalink
Vulkan: Make sure backbuffer is bound for UI.
Browse files Browse the repository at this point in the history
Fixes #10048.
  • Loading branch information
unknownbrackets committed Nov 5, 2017
1 parent 5802747 commit 49109c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UI/EmuScreen.cpp
Expand Up @@ -1038,6 +1038,9 @@ void EmuScreen::render() {
if (!osm.IsEmpty() || g_Config.bShowDebugStats || g_Config.iShowFPSCounter || g_Config.bShowTouchControls || g_Config.bShowDeveloperMenu || g_Config.bShowAudioDebug || saveStatePreview_->GetVisibility() != UI::V_GONE || g_Config.bShowFrameProfiler) {
DrawContext *thin3d = screenManager()->getDrawContext();

// It's possible we never ended up outputted anything - make sure we have the backbuffer.
thin3d->BindFramebufferAsRenderTarget(nullptr, { RPAction::KEEP, RPAction::KEEP });

// This sets up some important states but not the viewport.
screenManager()->getUIContext()->Begin();

Expand Down

0 comments on commit 49109c1

Please sign in to comment.