mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] main: properly shutdown if renderer fails to init
This commit is contained in:
parent
f4fc1eb5f6
commit
aabf19e63b
@ -95,7 +95,10 @@ static void updatePositionInfo()
|
||||
static int renderThread(void * unused)
|
||||
{
|
||||
if (!state.lgr->render_startup(state.lgrData, state.window))
|
||||
{
|
||||
state.running = false;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// start the cursor thread after render startup to prevent a race condition
|
||||
SDL_Thread *t_cursor = NULL;
|
||||
@ -1338,4 +1341,4 @@ int main(int argc, char * argv[])
|
||||
|
||||
config_free();
|
||||
return ret;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user