summaryrefslogtreecommitdiff
path: root/game/terrain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/terrain.cpp')
-rw-r--r--game/terrain.cpp1
1 files changed, 1 insertions, 0 deletions
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<Terrain::Vertex>(const GLuint arrayBuffer, cons
void
Terrain::generateMeshes()
{
+ meshes.removeAll();
std::vector<unsigned int> indices;
indices.reserve(geoData->n_faces() * 3);
std::vector<Vertex> vertices;