mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
fix this something
This commit is contained in:
parent
ce189c810d
commit
d69716ed11
1 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ Mesh<VertexStructure>::~Mesh() {
|
||||||
MeshStats::meshesCount--;
|
MeshStats::meshesCount--;
|
||||||
glDeleteVertexArrays(1, &vao);
|
glDeleteVertexArrays(1, &vao);
|
||||||
glDeleteBuffers(1, &vbo);
|
glDeleteBuffers(1, &vbo);
|
||||||
for (int i = ibos.size() - 1; i >= 0; i--) {
|
for (int i = 0; i < ibos.size(); i++) {
|
||||||
glDeleteBuffers(1, &ibos[i].ibo);
|
glDeleteBuffers(1, &ibos[i].ibo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -98,7 +98,7 @@ void Mesh<VertexStructure>::reload(
|
||||||
glBufferData(GL_ARRAY_BUFFER, 0, {}, GL_STREAM_DRAW);
|
glBufferData(GL_ARRAY_BUFFER, 0, {}, GL_STREAM_DRAW);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = indices.size(); i < ibos.size(); i++) {
|
for (int i = 0; i < ibos.size(); i++) {
|
||||||
glDeleteBuffers(1, &ibos[i].ibo);
|
glDeleteBuffers(1, &ibos[i].ibo);
|
||||||
}
|
}
|
||||||
ibos.clear();
|
ibos.clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue