From 4226bb242da6aa20d3295a792e8a88e9f9b6148a Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Thu, 20 Dec 2018 10:28:12 +0800 Subject: [PATCH] We should use numVertices here rather than draw.m_numVertices --- src/renderer_mtl.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer_mtl.mm b/src/renderer_mtl.mm index 30eed76d0..1967e2505 100644 --- a/src/renderer_mtl.mm +++ b/src/renderer_mtl.mm @@ -4066,7 +4066,7 @@ namespace bgfx { namespace mtl numInstances = draw.m_numInstances; numPrimsRendered = numPrimsSubmitted*draw.m_numInstances; - rce.drawPrimitives(prim.m_type, 0, draw.m_numVertices, draw.m_numInstances); + rce.drawPrimitives(prim.m_type, 0, numVertices, draw.m_numInstances); } }