SDL now makes sure the mutex is not NULL before attempting to lock it.

This commit is contained in:
OBattler
2021-09-02 15:33:17 +02:00
parent 586066d891
commit 448aec5d40

View File

@@ -288,7 +288,8 @@ sdl_destroy_texture(void)
void void
sdl_close(void) sdl_close(void)
{ {
SDL_LockMutex(sdl_mutex); if (sdl_mutex != NULL)
SDL_LockMutex(sdl_mutex);
/* Unregister our renderer! */ /* Unregister our renderer! */
video_setblit(NULL); video_setblit(NULL);