diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-13 14:29:23 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-13 14:29:23 +0200 |
| commit | d109fa83bd9678fc3c9e21da48e90aa069ec1c7f (patch) | |
| tree | 69d893868806d90bbbd5bf2ea36603616fa2e70b /draw/floor-mesh.cpp | |
| parent | 67897701316d83495aed4baa94e96c9f84b818f8 (diff) | |
a
Diffstat (limited to 'draw/floor-mesh.cpp')
| -rw-r--r-- | draw/floor-mesh.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/draw/floor-mesh.cpp b/draw/floor-mesh.cpp index da8fe7f2..4c23a391 100644 --- a/draw/floor-mesh.cpp +++ b/draw/floor-mesh.cpp @@ -32,6 +32,7 @@ void floor_mesh::set_tile(quad_data& data, tile& x) void floor_mesh::draw(tile_shader& shader, chunk& c) { + _vertex_buffer.setData({nullptr, sizeof(quad_data) * TILE_COUNT}, Magnum::GL::BufferUsage::DynamicDraw); // orphan the buffer std::array<quad_data, TILE_COUNT> data; for (auto& [x, idx, pt] : c) { set_tile(data[idx], x); |
