Clean up quads after finishing
This commit is contained in:
parent
4ce0f0d2f4
commit
50461ad4c8
|
@ -90,8 +90,6 @@ static GLuint vertex_buf[2];
|
||||||
static GLuint array_buf[2];
|
static GLuint array_buf[2];
|
||||||
static const GLuint vertex_data_position = 0;
|
static const GLuint vertex_data_position = 0;
|
||||||
|
|
||||||
static Quad *o1;
|
|
||||||
|
|
||||||
static std::vector<Quad *> quads = {};
|
static std::vector<Quad *> quads = {};
|
||||||
|
|
||||||
static std::array<glm::vec2, 6> verts({
|
static std::array<glm::vec2, 6> verts({
|
||||||
|
@ -172,7 +170,10 @@ int main() {
|
||||||
glfwPollEvents();
|
glfwPollEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
delete(o1);
|
for(auto q: quads) {
|
||||||
|
delete(q);
|
||||||
|
}
|
||||||
|
|
||||||
glfwDestroyWindow(w);
|
glfwDestroyWindow(w);
|
||||||
glfwTerminate();
|
glfwTerminate();
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
Loading…
Reference in New Issue