mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-26 03:12:18 -05:00
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:
parent
08c161fd13
commit
daec428cb3
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user