Merge pull request #1645 from Cacodemon345/patch-1

Port close fix to unix_sdl.c
This commit is contained in:
Miran Grča
2021-09-02 20:16:55 +02:00
committed by GitHub

View File

@@ -198,7 +198,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);