mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 09:29:44 +00:00
add MeshStats vertices count to Mesh::drawInstanced
This commit is contained in:
parent
5011a654be
commit
0ae335599a
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue