Wait for threads before SDL_Quit (lol)

This commit is contained in:
James R 2020-04-27 18:03:10 -07:00
parent bdddeb9ecf
commit 8f3820db66
1 changed files with 1 additions and 1 deletions

View File

@ -3031,7 +3031,7 @@ INT32 I_StartupSystem(void)
SDL_GetVersion(&SDLlinked);
#ifdef HAVE_THREADS
I_start_threads();
atexit(I_stop_threads);
I_AddExitFunc(I_stop_threads);
#endif
I_StartupConsole();
I_OutputMsg("Compiled for SDL version: %d.%d.%d\n",