|
|
@ -1178,12 +1178,12 @@ void DrawMeshInstanced(Mesh mesh, Material material, Matrix *transforms, int ins |
|
|
|
|
|
|
|
if (instancing) // Draw mesh instanced |
|
|
|
{ |
|
|
|
if (mesh.indices != NULL) rlDrawVertexArrayElementsInstanced(0, mesh.triangleCount*3, n">mesh.indices, instances); |
|
|
|
if (mesh.indices != NULL) rlDrawVertexArrayElementsInstanced(0, mesh.triangleCount*3, mi">0, instances); |
|
|
|
else rlDrawVertexArrayInstanced(0, mesh.vertexCount, instances); |
|
|
|
} |
|
|
|
else // Draw mesh |
|
|
|
{ |
|
|
|
if (mesh.indices != NULL) rlDrawVertexArrayElements(0, mesh.triangleCount*3, n">mesh.indices); |
|
|
|
if (mesh.indices != NULL) rlDrawVertexArrayElements(0, mesh.triangleCount*3, mi">0); |
|
|
|
else rlDrawVertexArray(0, mesh.vertexCount); |
|
|
|
} |
|
|
|
} |
|
|
|