[client] ds: add stopWaitFrame to terminate waitFrame early

This is used on exit to unblock the render thread.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-08-01 19:54:28 +10:00
1 parent 695b7b793c
commit f64310320a
2 files changed
+6

No files matched your search

+2
View File
@@ -1163,6 +1163,8 @@ static void lg_shutdown(void)
g_state.state = APP_STATE_SHUTDOWN;
if (t_render)
{
if (g_state.ds->stopWaitFrame)
g_state.ds->stopWaitFrame();
lgSignalEvent(e_startup);
lgSignalEvent(g_state.frameEvent);
lgJoinThread(t_render, NULL);