Split CopyDisplayToOutput in preparation for the next step

This commit is contained in:
Henrik Rydgård committed 2026-02-08 01:06:32 +01:00
1 parent 1078c27bb7
commit f01aaeafb1
9 files changed
+23 -13

No files matched your search

+4 -2
View File
@@ -1690,7 +1690,8 @@ ScreenRenderFlags EmuScreen::render(ScreenRenderMode mode) {
if (PSP_IsInited() && !skipBufferEffects) {
_dbg_assert_(gpu);
gpu->BeginHostFrame(displayLayoutConfig);
gpu->CopyDisplayToOutput(displayLayoutConfig, true);
gpu->SetCurFramebufferDirty(true);
gpu->CopyDisplayToOutput(displayLayoutConfig);
gpu->EndHostFrame();
}
if (gpu && gpu->PresentedThisFrame()) {
@@ -1803,7 +1804,8 @@ ScreenRenderFlags EmuScreen::RunEmulation(ScreenRenderMode mode, bool framebuffe
// This won't work in non-buffered, but that's fine.
if (!framebufferBound && PSP_IsInited()) {
// draw->BindFramebufferAsRenderTarget(nullptr, { RPAction::CLEAR, RPAction::CLEAR, RPAction::CLEAR, clearColor }, "EmuScreen_Stepping");
gpu->CopyDisplayToOutput(displayLayoutConfig, true);
gpu->SetCurFramebufferDirty(true);
gpu->CopyDisplayToOutput(displayLayoutConfig);
framebufferBound = true;
}
}