summaryrefslogtreecommitdiffhomepage
path: root/wall-mesh.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-04 17:55:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-04 17:55:05 +0200
commitb0bf26a6ff0071a4edb43c3bfb331110d025aae4 (patch)
tree8296ac490fe12915c7474592136e31d8ce78d4b9 /wall-mesh.hpp
parenteaa84e4cc36fbed509364d1084ddac368a745a33 (diff)
a
Diffstat (limited to 'wall-mesh.hpp')
-rw-r--r--wall-mesh.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/wall-mesh.hpp b/wall-mesh.hpp
index 1a9bb4e8..ef73e02b 100644
--- a/wall-mesh.hpp
+++ b/wall-mesh.hpp
@@ -27,7 +27,7 @@ private:
struct vertex final {
typename texcoords_array::value_type texcoords;
- typename position_array::value_type position;
+ typename position_array::value_type position;
};
using quad = std::array<vertex, 4>;
@@ -40,7 +40,7 @@ private:
tile_image& img, const position_array& positions);
GL::Mesh _mesh;
- GL::Buffer _vertex_buffer{vertex_array{}, Magnum::GL::BufferUsage::StaticDraw},
+ GL::Buffer _vertex_buffer{vertex_array{}, Magnum::GL::BufferUsage::DynamicDraw},
_index_buffer{_index_data, Magnum::GL::BufferUsage::StaticDraw};
static const std::array<std::array<UnsignedShort, 6>, COUNT> _index_data;