From 20dee28debb55416146d04f25879f736cbb9520b Mon Sep 17 00:00:00 2001 From: Adspartan Date: Fri, 31 May 2024 15:31:25 +0200 Subject: [PATCH] noggit: mapchunk: fix terrain holes display not being updated correctly --- src/noggit/MapChunk.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/noggit/MapChunk.cpp b/src/noggit/MapChunk.cpp index 8fada99b0..e4c574cd1 100644 --- a/src/noggit/MapChunk.cpp +++ b/src/noggit/MapChunk.cpp @@ -632,6 +632,9 @@ void MapChunk::prepare_draw ( const math::vector_3d& camera _indice_strips.clear(); _need_indice_buffer_update = false; + + indices_offsets[chunk_index()] = lod_indices_ptr(_lod_level); + indices_count[chunk_index()] = _indices_count_per_lod_level[_lod_level]; } if (_need_vao_update)