added destructors to shapes
This commit is contained in:
parent
a15d754c2d
commit
38a49c504a
6 changed files with 29 additions and 3 deletions
|
@ -15,6 +15,12 @@
|
|||
#endif
|
||||
|
||||
Application::~Application()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void Application::Quit()
|
||||
{
|
||||
ImGui_ImplOpenGL3_Shutdown();
|
||||
ImGui_ImplGlfw_Shutdown();
|
||||
|
@ -23,7 +29,7 @@ Application::~Application()
|
|||
for (Shape* shape : shapes)
|
||||
delete shape;
|
||||
|
||||
if (window != nullptr)
|
||||
if (window != nullptr)
|
||||
{
|
||||
glfwDestroyWindow(window);
|
||||
window = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue