We should use numVertices here rather than draw.m_numVertices

This commit is contained in:
Cloud Wu 2018-12-20 10:28:12 +08:00
parent a4776e297d
commit 4226bb242d

View File

@ -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);
}
}