mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-25 08:39:18 -05:00
REVERTED: Mesh indices issue #1891
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user