aboutsummaryrefslogtreecommitdiff
path: root/src/particle_vertex_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle_vertex_buffer.h')
-rw-r--r--src/particle_vertex_buffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particle_vertex_buffer.h b/src/particle_vertex_buffer.h
index 58daf38..25855a2 100644
--- a/src/particle_vertex_buffer.h
+++ b/src/particle_vertex_buffer.h
@@ -30,10 +30,10 @@ public:
~ParticleVertexBuffer() {
glDeleteBuffers(1, &_buffer);
- glDeleteVertexArrays(1, &_buffer);
+ glDeleteVertexArrays(1, &_array);
}
- void draw() {
+ void draw() const {
glBindVertexArray(_array);
glDrawArrays(GL_POINTS, 0, 3*_data.size());
}