Skip to content

Commit

Permalink
Fix teardown from async thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Nov 25, 2023
1 parent ad12cd1 commit 28ac37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/platforms/application_sdl3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ struct WSIPlatformSDL : GraniteWSIPlatform
push_task_to_async_thread(std::move(func));
};

while (alive && SDL_WaitEvent(&e))
while (alive && async_loop_alive && SDL_WaitEvent(&e))
{
if (e.type == wake_event_type)
{
Expand Down

0 comments on commit 28ac37c

Please sign in to comment.