summaryrefslogtreecommitdiffhomepage
path: root/src/wall-mesh.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-07 16:45:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-07 16:45:28 +0200
commit15e8cebc19bfb484ba46a3589378d52ca769769e (patch)
treecd4174c7d15671434773acdc957a6bf894d6b29d /src/wall-mesh.cpp
parent7b7e0ba851189848ff1c89761a1609e6a978fb19 (diff)
a
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);
}