[client] main: don't start the overlay tick timer until init is done

This commit is contained in:
Geoffrey McRae 2022-05-27 13:42:47 +10:00
parent 123be552a4
commit 48735cd001

View File

@ -192,6 +192,7 @@ static int renderThread(void * unused)
return 1; return 1;
} }
app_initOverlays();
LGTimer * tickTimer; LGTimer * tickTimer;
if (!lgCreateTimer(1000 / TICK_RATE, tickTimerFn, NULL, &tickTimer)) if (!lgCreateTimer(1000 / TICK_RATE, tickTimerFn, NULL, &tickTimer))
{ {
@ -202,8 +203,6 @@ static int renderThread(void * unused)
LG_LOCK_INIT(g_state.lgrLock); LG_LOCK_INIT(g_state.lgrLock);
app_initOverlays();
/* signal to other threads that the renderer is ready */ /* signal to other threads that the renderer is ready */
lgSignalEvent(e_startup); lgSignalEvent(e_startup);