added destructors to shapes

This commit is contained in:
Lauchmelder 2021-12-24 16:22:16 +01:00
parent a15d754c2d
commit 38a49c504a
6 changed files with 29 additions and 3 deletions

View file

@ -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;