summaryrefslogtreecommitdiffhomepage
path: root/draw/wireframe-mesh.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-13 14:29:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-13 14:29:23 +0200
commitd109fa83bd9678fc3c9e21da48e90aa069ec1c7f (patch)
tree69d893868806d90bbbd5bf2ea36603616fa2e70b /draw/wireframe-mesh.cpp
parent67897701316d83495aed4baa94e96c9f84b818f8 (diff)
a
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}}
{