summaryrefslogtreecommitdiffhomepage
path: root/draw/floor-mesh.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-20 15:23:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-20 15:23:50 +0200
commit1ec8e253172112e0f2bb98426c8d0ad900addfe7 (patch)
tree9f7f6ea3bda9eef2ef34e395de466b6761a0480f /draw/floor-mesh.cpp
parentb2f30235c9a2b11adc31567b044beb04ec7ac3e6 (diff)
a
Diffstat (limited to 'draw/floor-mesh.cpp')
-rw-r--r--draw/floor-mesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/floor-mesh.cpp b/draw/floor-mesh.cpp
index 3b253966..7fef5109 100644
--- a/draw/floor-mesh.cpp
+++ b/draw/floor-mesh.cpp
@@ -32,7 +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
+ //_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);