aboutsummaryrefslogtreecommitdiff
path: root/src/buffer/vertex/particle_vertex_buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer/vertex/particle_vertex_buffer.cc')
-rw-r--r--src/buffer/vertex/particle_vertex_buffer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer/vertex/particle_vertex_buffer.cc b/src/buffer/vertex/particle_vertex_buffer.cc
index fc61cc5..3f755dc 100644
--- a/src/buffer/vertex/particle_vertex_buffer.cc
+++ b/src/buffer/vertex/particle_vertex_buffer.cc
@@ -11,7 +11,7 @@ ParticleVertexBuffer::ParticleVertexBuffer(std::vector<GLfloat>&& data):
GL_ARRAY_BUFFER,
_data.size() * sizeof(GLfloat),
_data.data(),
- GL_STATIC_DRAW
+ GL_DYNAMIC_DRAW
);
glEnableVertexAttribArray(0);
@@ -29,5 +29,5 @@ GLuint ParticleVertexBuffer::getBuffer() const {
void ParticleVertexBuffer::draw() const {
glBindVertexArray(_array);
- glDrawArrays(GL_POINTS, 0, 3*_data.size());
+ glDrawArrays(GL_POINTS, 0, _data.size()/3);
}