[client] ds: add stopWaitFrame to terminate waitFrame early
This is used on exit to unblock the render thread.
This commit is contained in:
1 parent
695b7b793c
commit
f64310320a
2 files changed
+6
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user