mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 22:48:30 +00:00
Allow initializing hints and properties from any thread
This commit is contained in:
11
src/SDL.c
11
src/SDL.c
@@ -252,21 +252,14 @@ void SDL_InitMainThread(void)
|
||||
{
|
||||
SDL_InitTLSData();
|
||||
SDL_InitEnvironment();
|
||||
SDL_InitProperties();
|
||||
SDL_InitHints();
|
||||
SDL_InitTicks();
|
||||
SDL_InitFilesystem();
|
||||
SDL_InitLog();
|
||||
SDL_GetGlobalProperties();
|
||||
}
|
||||
|
||||
static void SDL_QuitMainThread(void)
|
||||
{
|
||||
SDL_QuitLog();
|
||||
SDL_QuitFilesystem();
|
||||
SDL_QuitTicks();
|
||||
SDL_QuitHints();
|
||||
SDL_QuitProperties();
|
||||
SDL_QuitEnvironment();
|
||||
SDL_QuitTLSData();
|
||||
}
|
||||
@@ -625,6 +618,10 @@ void SDL_Quit(void)
|
||||
*/
|
||||
SDL_memset(SDL_SubsystemRefCount, 0x0, sizeof(SDL_SubsystemRefCount));
|
||||
|
||||
SDL_QuitLog();
|
||||
SDL_QuitHints();
|
||||
SDL_QuitProperties();
|
||||
|
||||
SDL_QuitMainThread();
|
||||
|
||||
SDL_bInMainQuit = false;
|
||||
|
Reference in New Issue
Block a user