chunkmesher: also cleanup colors at the start

vertex-deduplication
EmaMaker 2023-03-13 12:56:10 +01:00
parent bc2225e0f3
commit ba35689c6c
1 changed files with 1 additions and 0 deletions

View File

@ -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;