summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-scenery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chunk-scenery.cpp')
-rw-r--r--src/chunk-scenery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chunk-scenery.cpp b/src/chunk-scenery.cpp
index 3b816a9b..ca888588 100644
--- a/src/chunk-scenery.cpp
+++ b/src/chunk-scenery.cpp
@@ -173,8 +173,8 @@ auto chunk::ensure_scenery_mesh(scenery_scratch_buffers buffers) noexcept -> sce
}
GL::Mesh mesh{GL::MeshPrimitive::Triangles};
- auto vert_view = ArrayView<std::array<vertex, 4>>{scenery_vertexes, count};
- auto index_view = ArrayView<std::array<UnsignedShort, 6>>{scenery_indexes, count};
+ auto vert_view = ArrayView<const std::array<vertex, 4>>{scenery_vertexes, count};
+ auto index_view = ArrayView<const std::array<UnsignedShort, 6>>{scenery_indexes, count};
mesh.addVertexBuffer(GL::Buffer{vert_view}, 0, tile_shader::Position{}, tile_shader::TextureCoordinates{}, tile_shader::Depth{})
.setIndexBuffer(GL::Buffer{index_view}, 0, GL::MeshIndexType::UnsignedShort)
.setCount(int32_t(6 * count));