mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-17 00:38:12 +00:00
Make sure SDL subsystems are initialized before starting threads
This commit is contained in:
@@ -371,7 +371,7 @@ SDL_Thread *SDL_CreateThreadWithPropertiesRuntime(SDL_PropertiesID props,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SDL_InitTLSData();
|
||||
SDL_InitMainThread();
|
||||
|
||||
SDL_Thread *thread = (SDL_Thread *)SDL_calloc(1, sizeof(*thread));
|
||||
if (!thread) {
|
||||
|
Reference in New Issue
Block a user