Clean up quads after finishing

This commit is contained in:
Archie Hilton 2024-05-14 21:15:17 +01:00
parent 4ce0f0d2f4
commit 50461ad4c8
1 changed files with 4 additions and 3 deletions

View File

@ -90,8 +90,6 @@ static GLuint vertex_buf[2];
static GLuint array_buf[2];
static const GLuint vertex_data_position = 0;
static Quad *o1;
static std::vector<Quad *> quads = {};
static std::array<glm::vec2, 6> verts({
@ -172,7 +170,10 @@ int main() {
glfwPollEvents();
}
delete(o1);
for(auto q: quads) {
delete(q);
}
glfwDestroyWindow(w);
glfwTerminate();
exit(EXIT_SUCCESS);