add deinit
This commit is contained in:
@@ -47,6 +47,8 @@ protected:
|
||||
|
||||
virtual void display() {}
|
||||
|
||||
virtual void deinit() {}
|
||||
|
||||
public:
|
||||
GLFWwindow *getWindow();
|
||||
|
||||
|
||||
@@ -152,6 +152,8 @@ int App::run() {
|
||||
};
|
||||
manager.erase(getWindow());
|
||||
|
||||
deinit();
|
||||
|
||||
glfwDestroyWindow(_window);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user