feat: async world generation

This commit is contained in:
2026-04-14 09:24:10 +08:00
parent 80c8691999
commit 16ff954166
9 changed files with 371 additions and 545 deletions

View File

@@ -11,7 +11,11 @@ Window::Window(Renderer& renderer) :
}
Window::~Window() {
glfwDestroyWindow(m_window);
if (m_window) {
glfwDestroyWindow(m_window);
m_window = nullptr;
}
glfwTerminate();
}