mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] prevent lgInit
from resetting the run state
If the renderer fails to start it sets the run state to stopped, having lgInit where it was causes this to be reset to running triggering invalid usage of g_state.lgmp.
This commit is contained in:
parent
3783a25211
commit
837858c214
@ -2046,6 +2046,8 @@ static int lg_run(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
lgInit();
|
||||
|
||||
// start the renderThread so we don't just display junk
|
||||
if (!lgCreateThread("renderThread", renderThread, NULL, &t_render))
|
||||
{
|
||||
@ -2088,8 +2090,6 @@ static int lg_run(void)
|
||||
KVMFR *udata;
|
||||
int waitCount = 0;
|
||||
|
||||
lgInit();
|
||||
|
||||
restart:
|
||||
while(g_state.state == APP_STATE_RUNNING)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user