mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
More presentation fixes
This commit is contained in:
parent
8a822cb851
commit
e167a54b8e
@ -628,6 +628,7 @@ void SoftGPU::CopyToCurrentFboFromDisplayRam(int srcwidth, int srcheight) {
|
|||||||
}
|
}
|
||||||
if (!hasImage) {
|
if (!hasImage) {
|
||||||
draw_->BindFramebufferAsRenderTarget(nullptr, { Draw::RPAction::CLEAR, Draw::RPAction::DONT_CARE, Draw::RPAction::DONT_CARE }, "CopyToCurrentFboFromDisplayRam");
|
draw_->BindFramebufferAsRenderTarget(nullptr, { Draw::RPAction::CLEAR, Draw::RPAction::DONT_CARE, Draw::RPAction::DONT_CARE }, "CopyToCurrentFboFromDisplayRam");
|
||||||
|
presentation_->NotifyPresent();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1387,6 +1387,9 @@ ScreenRenderFlags EmuScreen::render(ScreenRenderMode mode) {
|
|||||||
gpu->CopyDisplayToOutput(true);
|
gpu->CopyDisplayToOutput(true);
|
||||||
PSP_EndHostFrame();
|
PSP_EndHostFrame();
|
||||||
}
|
}
|
||||||
|
if (gpu->PresentedThisFrame()) {
|
||||||
|
framebufferBound = true;
|
||||||
|
}
|
||||||
if (!framebufferBound) {
|
if (!framebufferBound) {
|
||||||
draw->BindFramebufferAsRenderTarget(nullptr, { RPAction::CLEAR, RPAction::CLEAR, RPAction::CLEAR, }, "EmuScreen_Behind");
|
draw->BindFramebufferAsRenderTarget(nullptr, { RPAction::CLEAR, RPAction::CLEAR, RPAction::CLEAR, }, "EmuScreen_Behind");
|
||||||
}
|
}
|
||||||
@ -1496,10 +1499,6 @@ ScreenRenderFlags EmuScreen::render(ScreenRenderMode mode) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (framebufferBound && gpu) {
|
|
||||||
gpu->PresentedThisFrame();
|
|
||||||
}
|
|
||||||
|
|
||||||
PSP_EndHostFrame();
|
PSP_EndHostFrame();
|
||||||
|
|
||||||
// This place rougly matches how libretro handles it (after retro_frame).
|
// This place rougly matches how libretro handles it (after retro_frame).
|
||||||
|
Loading…
Reference in New Issue
Block a user