diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-07 16:45:28 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-07 16:45:28 +0200 |
| commit | 15e8cebc19bfb484ba46a3589378d52ca769769e (patch) | |
| tree | cd4174c7d15671434773acdc957a6bf894d6b29d /src/wall-mesh.cpp | |
| parent | 7b7e0ba851189848ff1c89761a1609e6a978fb19 (diff) | |
a
Diffstat (limited to 'src/wall-mesh.cpp')
| -rw-r--r-- | src/wall-mesh.cpp | 4 |
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); } |
