call SDL_Quit() before exit(0) (linux window closing issue) (#408)

* use _Exit(0) on linux

* use SDL_Quit() instead of _Exit(0)

* remove unnecessary call, add bandaid comment

Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
briaguya 2022-05-29 16:45:27 -04:00 committed by GitHub
parent 08c161fd13
commit daec428cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,6 +249,7 @@ static void gfx_sdl_handle_events(void) {
} }
break; break;
case SDL_QUIT: case SDL_QUIT:
SDL_Quit(); // bandaid fix for linux window closing issue
exit(0); exit(0);
} }
} }