chunk: first delete buffer, then vao

vertex-deduplication
EmaMaker 2023-03-13 12:55:20 +01:00
parent f3d89a2e5a
commit bc2225e0f3
1 changed files with 1 additions and 1 deletions

View File

@ -29,10 +29,10 @@ namespace Chunk
Chunk ::~Chunk()
{
glDeleteVertexArrays(1, &(this->VAO));
glDeleteBuffers(1, &(this->colorBuffer));
glDeleteBuffers(1, &(this->VBO));
glDeleteBuffers(1, &(this->EBO));
glDeleteVertexArrays(1, &(this->VAO));
vertices.clear();
indices.clear();