mirror of https://github.com/Leinnan/doppler.git
Add missing delete buffer on mesh drop
This commit is contained in:
parent
a48a8ab252
commit
4ab3fee655
|
|
@ -75,6 +75,7 @@ impl Drop for Mesh {
|
|||
unsafe {
|
||||
gl::DeleteVertexArrays(1, &self.VAO);
|
||||
gl::DeleteBuffers(1, &self.VBO);
|
||||
gl::DeleteBuffers(1, &self.EBO);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue