Skip to content

Commit

Permalink
Fix issue on EmuScreen after a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 18, 2024
1 parent e29f59a commit e5339bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UI/EmuScreen.cpp
Expand Up @@ -1612,14 +1612,15 @@ ScreenRenderFlags EmuScreen::render(ScreenRenderMode mode) {
PSP_EndHostFrame();
}

screenManager()->getUIContext()->BeginFrame();

if (gpu && !gpu->PresentedThisFrame() && !skipBufferEffects) {
draw->BindFramebufferAsRenderTarget(nullptr, { RPAction::CLEAR, RPAction::CLEAR, RPAction::CLEAR, clearColor }, "EmuScreen_NoFrame");
draw->SetViewport(viewport);
draw->SetScissorRect(0, 0, g_display.pixel_xres, g_display.pixel_yres);
}

screenManager()->getUIContext()->BeginFrame();

if (!(mode & ScreenRenderMode::TOP)) {
// We're in run-behind mode, but we don't want to draw chat, debug UI and stuff.
// So, darken and bail here.
Expand Down

0 comments on commit e5339bd

Please sign in to comment.