mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-18 00:27:02 +08:00
feat: async world generation
This commit is contained in:
@@ -11,7 +11,11 @@ Window::Window(Renderer& renderer) :
|
||||
}
|
||||
|
||||
Window::~Window() {
|
||||
glfwDestroyWindow(m_window);
|
||||
if (m_window) {
|
||||
glfwDestroyWindow(m_window);
|
||||
m_window = nullptr;
|
||||
}
|
||||
|
||||
glfwTerminate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user