mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 11:05:45 +01:00
handle window exits more gracefully and appropriately.
This commit is contained in:
@@ -69,5 +69,13 @@ void window_loop(void) {
|
||||
glfwSwapBuffers(win);
|
||||
}
|
||||
|
||||
glfwDestroyWindow(win);
|
||||
void window_close(void) {
|
||||
assert(win);
|
||||
glfwSetWindowShouldClose(win, 1);
|
||||
}
|
||||
|
||||
void window_free(void) {
|
||||
glfwDestroyWindow(win);
|
||||
render_free();
|
||||
win = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user