summaryrefslogtreecommitdiffhomepage
path: root/src/wall-mesh.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-06 15:54:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-06 15:54:10 +0200
commitded69f52906990cf975a62c0efbaca4b6cfa5e88 (patch)
treebca2790e5d9d45ccef12e9da6cf4b125912f12db /src/wall-mesh.cpp
parent896e072d8bd94020c883e994451b86675ecdced7 (diff)
a
Diffstat (limited to 'src/wall-mesh.cpp')
-rw-r--r--src/wall-mesh.cpp2
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;