[client] ds: add stopWaitFrame to terminate waitFrame early

This is used on exit to unblock the render thread.
This commit is contained in:
Quantum
2021-08-01 05:45:21 -04:00
committed by Geoffrey McRae
parent 695b7b793c
commit f64310320a
2 changed files with 6 additions and 0 deletions

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);