From 15e8cebc19bfb484ba46a3589378d52ca769769e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 7 Oct 2022 16:45:28 +0200 Subject: a --- src/wall-mesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wall-mesh.cpp') 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); } -- cgit v1.2.3