diff options
Diffstat (limited to 'floor-mesh.hpp')
-rw-r--r-- | floor-mesh.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/floor-mesh.hpp b/floor-mesh.hpp index 0667c9e1..2dfdf5f3 100644 --- a/floor-mesh.hpp +++ b/floor-mesh.hpp @@ -34,9 +34,10 @@ private: static const std::array<index_type, TILE_COUNT> _index_data; static const std::array<vertex_positions_data, TILE_COUNT> _position_data; + + GL::Mesh _mesh; std::array<quad_data, TILE_COUNT> _vertex_data = {}; - GL::Mesh _floor_mesh; GL::Buffer _vertex_buffer{_vertex_data, Magnum::GL::BufferUsage::DynamicDraw}, _index_buffer{_index_data, Magnum::GL::BufferUsage::StaticDraw}, _positions_buffer{_position_data, Magnum::GL::BufferUsage::StaticDraw}; |