From 0ae335599a9560733c6ce13d0d76ba7fa909a951 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 1 Nov 2026 02:05:27 +0300 Subject: [PATCH] add MeshStats vertices count to Mesh::drawInstanced --- src/graphics/core/Mesh.inl | 1 + 1 file changed, 1 insertion(+) 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; }