Skip to content

Commit

Permalink
gl: fix Delay Frame Swapping pacing issue on android
Browse files Browse the repository at this point in the history
Partial revert of c83b0e3.
Fix root issue in OpenGLRenderer::DrawOSD.
  • Loading branch information
flyinghead committed Sep 24, 2024
1 parent c83b0e3 commit f179c00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/rend/gles/gles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,8 @@ void OpenGLRenderer::DrawOSD(bool clear_screen)
glDrawArrays(GL_TRIANGLE_STRIP, i * 4, 4);

glCheck();
imguiDriver->setFrameRendered();
if (clear_screen)
imguiDriver->setFrameRendered();
}
#endif
#endif
Expand Down
3 changes: 1 addition & 2 deletions core/ui/mainui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ void mainui_loop(bool forceStart)
{
fc_profiler::startThread("main");

if (!mainui_rend_frame())
continue;
mainui_rend_frame();
if (imguiDriver == nullptr)
forceReinit = true;
else
Expand Down

0 comments on commit f179c00

Please sign in to comment.