mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 11:45:18 +02:00
Fix the point in time in the frame that we run and render the ImDebugger
Turns out it matters quite a lot. Will see if I can clean this up later.
This commit is contained in:
@@ -187,7 +187,7 @@ void ScreenManager::resized() {
|
||||
}
|
||||
}
|
||||
|
||||
ScreenRenderFlags ScreenManager::render() {
|
||||
ScreenRenderFlags ScreenManager::Render(std::function<void()> afterPreRender) {
|
||||
using namespace Draw;
|
||||
|
||||
ScreenRenderFlags flags = ScreenRenderFlags::NONE;
|
||||
@@ -203,6 +203,8 @@ ScreenRenderFlags ScreenManager::render() {
|
||||
flags |= layer.screen->PreRender(mode);
|
||||
}
|
||||
|
||||
afterPreRender();
|
||||
|
||||
// Now, start the final render pass. This is now the ONLY place where binding the null fb is allowed.
|
||||
draw_->BindFramebufferAsRenderTarget(nullptr, {RPAction::CLEAR, RPAction::CLEAR, RPAction::CLEAR}, "BackBuffer");
|
||||
getUIContext()->BeginFrame();
|
||||
|
||||
Reference in New Issue
Block a user