diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-04 16:28:23 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-04 16:28:23 +0200 |
| commit | eaa84e4cc36fbed509364d1084ddac368a745a33 (patch) | |
| tree | 4cefec71f19fb2c45a28e1b37135fcda35f92591 | |
| parent | 2bbf13e72c571c5063576a13e123f0ae3ad78f9f (diff) | |
a
| -rw-r--r-- | floor-mesh.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/floor-mesh.cpp b/floor-mesh.cpp index 964af8bf..defc318b 100644 --- a/floor-mesh.cpp +++ b/floor-mesh.cpp @@ -30,8 +30,7 @@ void floor_mesh::draw(tile_shader& shader, chunk& c) c.foreach_tile([&](tile& x, std::size_t idx, local_coords) { set_tile(data[idx], x); }); - //_vertex_buffer.setData(data, Magnum::GL::BufferUsage::DynamicDraw); - _vertex_buffer.setSubData(0, Containers::arrayView(data.data(), data.size())); + _vertex_buffer.setSubData(0, data); Magnum::GL::MeshView mesh{_mesh}; mesh.setCount(quad_index_count); const tile_atlas* last_tile_atlas = nullptr; |
