diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-08 06:21:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-08 06:21:01 +0200 |
commit | 06794499ce99020203c7c45294dad0d81bdca13d (patch) | |
tree | 398e17c113cd4fae7be143df1d2ecf77e46a1c6b /src/chunk-scenery.cpp | |
parent | 382ba9ffeedc95039e8d4ec360cd389ae220159c (diff) |
a
Diffstat (limited to 'src/chunk-scenery.cpp')
-rw-r--r-- | src/chunk-scenery.cpp | 4 |
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)); |