summaryrefslogtreecommitdiffhomepage
path: root/draw/wireframe-mesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'draw/wireframe-mesh.cpp')
-rw-r--r--draw/wireframe-mesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/wireframe-mesh.cpp b/draw/wireframe-mesh.cpp
index 32aa72aa..0b6846d7 100644
--- a/draw/wireframe-mesh.cpp
+++ b/draw/wireframe-mesh.cpp
@@ -29,7 +29,7 @@ GL::RectangleTexture mesh_base::make_constant_texture()
mesh_base::mesh_base(GL::MeshPrimitive primitive, Containers::ArrayView<const void> index_data,
std::size_t num_vertices, std::size_t num_indexes) :
- _vertex_buffer{Containers::Array<Vector3>{ValueInit, num_vertices}},
+ _vertex_buffer{Containers::Array<Vector3>{ValueInit, num_vertices}, GL::BufferUsage::DynamicDraw},
_texcoords_buffer{Containers::Array<Vector2>{ValueInit, num_vertices}},
_index_buffer{num_indexes == 0 ? GL::Buffer{NoCreate} : GL::Buffer{index_data}}
{