summaryrefslogtreecommitdiffhomepage
path: root/src/wall-mesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wall-mesh.cpp')
-rw-r--r--src/wall-mesh.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wall-mesh.cpp b/src/wall-mesh.cpp
index 68d8733e..dce86dc1 100644
--- a/src/wall-mesh.cpp
+++ b/src/wall-mesh.cpp
@@ -42,9 +42,9 @@ void wall_mesh::draw(tile_shader& shader, chunk& c)
texture_array textures = {};
{
vertex_array data;
- c.foreach_tile([&](tile& x, std::size_t idx, local_coords) {
+ for (auto [x, idx, pt] : c) {
maybe_add_tile(data, textures, x, idx);
- });
+ }
_vertex_buffer.setSubData(0, data);
}