Skip to content

Commit

Permalink
fix call to SDL2 SDL_TLSCreate()
Browse files Browse the repository at this point in the history
  • Loading branch information
superzazu committed Dec 22, 2024
1 parent 5800dc6 commit b91f82f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SDL_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ int Sound_Init(void)

SDL_InitSubSystem(SDL_INIT_AUDIO);

// tlsid_errmsg = SDL_TLSCreate();
tlsid_errmsg.value = 0;
BAIL_IF_MACRO(!SDL_SetTLS(&tlsid_errmsg, NULL, NULL), ERR_OUT_OF_MEMORY, 0);

samplelist_mutex = SDL_CreateMutex();

Expand Down Expand Up @@ -174,7 +175,7 @@ int Sound_Quit(void)
SDL_free((void *) available_decoders);
available_decoders = NULL;

// tlsid_errmsg = 0;
tlsid_errmsg.value = 0;

return 1;
} /* Sound_Quit */
Expand Down

0 comments on commit b91f82f

Please sign in to comment.