From ba35689c6cac8d1e576d52f61f169f76f292b90e Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Mon, 13 Mar 2023 12:56:10 +0100 Subject: [PATCH] chunkmesher: also cleanup colors at the start --- src/chunkmesher.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chunkmesher.cpp b/src/chunkmesher.cpp index 80ee130..89383fc 100755 --- a/src/chunkmesher.cpp +++ b/src/chunkmesher.cpp @@ -36,6 +36,7 @@ void mesh(Chunk::Chunk* chunk) */ chunk->vertices.clear(); chunk->indices.clear(); + chunk->colors.clear(); chunk->vIndex = 0; if(chunk->getState(Chunk::CHUNK_STATE_EMPTY)) return;