add MeshStats vertices count to Mesh::drawInstanced

This commit is contained in:
MihailRis 2026-11-01 02:05:27 +03:00
parent 5011a654be
commit 0ae335599a

View file

@ -156,4 +156,5 @@ void Mesh<VertexStructure>::drawInstanced(
instances.bind(count_attributes(VertexStructure::ATTRIBUTES), first);
glDrawArraysInstanced(GL_TRIANGLES, 0, vertexCount, count);
glBindVertexArray(0);
MeshStats::vertices += vertexCount * count;
}