mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] main: don't start the overlay tick timer until init is done
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user