Skip to content
Snippets Groups Projects
Commit e59b8189 authored by deuce's avatar deuce
Browse files

Only call SDL_Quit() if SDL_Init() succeeded.

parent 33368ba1
No related branches found
No related tags found
No related merge requests found
......@@ -328,7 +328,7 @@ void run_sdl_drawing_thread(int (*drawing_thread)(void *data), void (*exit_drawi
static void QuitWrap(void)
{
if(sdl.Quit)
if(sdl.Quit && sdl_initialized)
sdl.Quit();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment