Skip to content

Commit

Permalink
Process any queued events before entering main loop.
Browse files Browse the repository at this point in the history
It seems like it's possible for wave event to be eaten.
  • Loading branch information
Themaister committed Sep 28, 2024
1 parent 24954ca commit 901d36a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/platforms/application_sdl3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ struct WSIPlatformSDL : GraniteWSIPlatform
{
auto ctx = Global::create_thread_context();

process_events_main_thread();

if (options.threaded)
{
async_loop_alive = true;
Expand Down

0 comments on commit 901d36a

Please sign in to comment.