REVERTED: Mesh indices issue #1891
This commit is contained in:
parent
0c17d1e14f
commit
7c7ee1cdc8
1 changed files with 2 additions and 2 deletions
|
@ -1178,12 +1178,12 @@ void DrawMeshInstanced(Mesh mesh, Material material, Matrix *transforms, int ins
|
||||||
|
|
||||||
if (instancing) // Draw mesh instanced
|
if (instancing) // Draw mesh instanced
|
||||||
{
|
{
|
||||||
if (mesh.indices != NULL) rlDrawVertexArrayElementsInstanced(0, mesh.triangleCount*3, mesh.indices, instances);
|
if (mesh.indices != NULL) rlDrawVertexArrayElementsInstanced(0, mesh.triangleCount*3, 0, instances);
|
||||||
else rlDrawVertexArrayInstanced(0, mesh.vertexCount, instances);
|
else rlDrawVertexArrayInstanced(0, mesh.vertexCount, instances);
|
||||||
}
|
}
|
||||||
else // Draw mesh
|
else // Draw mesh
|
||||||
{
|
{
|
||||||
if (mesh.indices != NULL) rlDrawVertexArrayElements(0, mesh.triangleCount*3, mesh.indices);
|
if (mesh.indices != NULL) rlDrawVertexArrayElements(0, mesh.triangleCount*3, 0);
|
||||||
else rlDrawVertexArray(0, mesh.vertexCount);
|
else rlDrawVertexArray(0, mesh.vertexCount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue