소스 검색

REVERTED: Mesh indices issue #1891

pull/1900/head
raysan5 4 년 전
부모
커밋
7c7ee1cdc8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/models.c

+ 2
- 2
src/models.c 파일 보기

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

불러오는 중...
취소
저장