diff options
Diffstat (limited to 'draw/wall-mesh.cpp')
-rw-r--r-- | draw/wall-mesh.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/draw/wall-mesh.cpp b/draw/wall-mesh.cpp index acd4ac75..81201598 100644 --- a/draw/wall-mesh.cpp +++ b/draw/wall-mesh.cpp @@ -39,6 +39,7 @@ void wall_mesh::maybe_add_tile(vertex_array& data, texture_array& textures, tile void wall_mesh::draw(tile_shader& shader, chunk& c) { + _vertex_buffer.setData({nullptr, sizeof(vertex_array)}, Magnum::GL::BufferUsage::DynamicDraw); // orphan the buffer texture_array textures = {}; { vertex_array data; |