diff --git a/src/graphics/core/Mesh.inl b/src/graphics/core/Mesh.inl index 5bf46fb32..df1b20185 100644 --- a/src/graphics/core/Mesh.inl +++ b/src/graphics/core/Mesh.inl @@ -156,4 +156,5 @@ void Mesh::drawInstanced( instances.bind(count_attributes(VertexStructure::ATTRIBUTES), first); glDrawArraysInstanced(GL_TRIANGLES, 0, vertexCount, count); glBindVertexArray(0); + MeshStats::vertices += vertexCount * count; }