mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Split CopyDisplayToOutput in preparation for the next step
This commit is contained in:
1 parent
1078c27bb7
commit
f01aaeafb1
9 files changed
+23
-13
No files matched your search
+4
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user