Make sure SDL subsystems are initialized before starting threads

This commit is contained in:
Sam Lantinga committed 2024-07-12 09:10:05 -07:00
1 parent f531003776
commit bd041b4831
3 files changed
+38 -16

No files matched your search

+1 -1
View File
@@ -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) {