diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 15:54:10 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 15:54:10 +0200 |
commit | ded69f52906990cf975a62c0efbaca4b6cfa5e88 (patch) | |
tree | bca2790e5d9d45ccef12e9da6cf4b125912f12db /src/wall-mesh.cpp | |
parent | 896e072d8bd94020c883e994451b86675ecdced7 (diff) |
a
Diffstat (limited to 'src/wall-mesh.cpp')
-rw-r--r-- | src/wall-mesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wall-mesh.cpp b/src/wall-mesh.cpp index ee998e63..ebbfee75 100644 --- a/src/wall-mesh.cpp +++ b/src/wall-mesh.cpp @@ -51,7 +51,7 @@ void wall_mesh::draw(tile_shader& shader, chunk& c) c.foreach_tile([&](tile& x, std::size_t, local_coords pt) { maybe_add_tile(data, textures, pos, x, pt); }); - _vertex_buffer.setSubData(0, Containers::arrayView(data.data(), pos)); + _vertex_buffer.setSubData(0, {data.data(), pos}); } const GL::RectangleTexture* last_texture = nullptr; |