[client] main: properly shutdown if renderer fails to init

This commit is contained in:
Geoffrey McRae committed 2019-05-27 18:40:36 +10:00
1 parent f4fc1eb5f6
commit aabf19e63b
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -1 +1 @@
B1-rc3-0-g438e9e0969+1
B1-rc3-1-g84e5626fee+1
+4 -1
View File
@@ -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;
}
}