Skip to content

Commit

Permalink
abstract_runner: if emscripten, inc mIdxFrame also when idling
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Oct 20, 2023
1 parent c0426b8 commit ea654d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,10 @@ void AbstractRunner::CreateFramesAndRender()
// Idling for emscripten: early exit if idling
// This test should be done after calling Impl_PollEvents() since it checks the event queue for incoming events!
if (ShallIdleThisFrame_Emscripten())
{
mIdxFrame += 1;
return;
}
#endif

//
Expand Down

0 comments on commit ea654d4

Please sign in to comment.