Permalink
Browse files

Vulkan: Make sure backbuffer is bound for UI.

Fixes #10048.
  • Loading branch information...
unknownbrackets committed Nov 5, 2017
1 parent 56d3440 commit ead4c5f9a8036939877f8897b95ab33a96c6b716
Showing with 3 additions and 0 deletions.
  1. +3 −0 UI/EmuScreen.cpp
View
@@ -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();

0 comments on commit ead4c5f

Please sign in to comment.