From f35a245c1bd621f3af2956fb0e6dd01b0e23f421 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 27 Oct 2024 15:52:47 +0000 Subject: Support regenerating the terrain mesh from updated geodata --- game/terrain.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'game/terrain.cpp') diff --git a/game/terrain.cpp b/game/terrain.cpp index 3b16e79..bb8e3ce 100644 --- a/game/terrain.cpp +++ b/game/terrain.cpp @@ -33,6 +33,7 @@ VertexArrayObject::addAttribsFor(const GLuint arrayBuffer, cons void Terrain::generateMeshes() { + meshes.removeAll(); std::vector indices; indices.reserve(geoData->n_faces() * 3); std::vector vertices; -- cgit v1.2.3