Skip to content

Commit

Permalink
MorphOS: Fix startup freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
BeWorld2018 committed Nov 5, 2024
1 parent 8097ba5 commit b1c9e84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ int SDL_InitSubSystem(Uint32 flags)
if (!SDL_MainIsReady) {
return SDL_SetError("Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function?");
}

#ifdef __MORPHOS__
// Force InitMainThread unless we are a big crash !
SDL_InitMainThread();
#endif

/* Clear the error message */
SDL_ClearError();
Expand Down

0 comments on commit b1c9e84

Please sign in to comment.