Make sure SDL subsystems are initialized before starting threads
This commit is contained in:
1 parent
f531003776
commit
bd041b4831
3 files changed
+38
-16
No files matched your search
@@ -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