Skip to content

Commit

Permalink
igl | metal | Rollback instanceCount
Browse files Browse the repository at this point in the history
Summary: Rollback the `instanceCount` parameter.

Reviewed By: syeh1

Differential Revision: D52335368

fbshipit-source-id: 7a436cc1a163877adce03c921ce876e0099868d0
  • Loading branch information
corporateshark authored and facebook-github-bot committed Dec 20, 2023
1 parent f277bc9 commit a0f56ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/igl/metal/RenderCommandEncoder.mm
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
MTLIndexType indexType = convertIndexType(indexFormat);

#if IGL_PLATFORM_IOS
if (@available(iOS 9, *)) {
if (@available(iOS 16, *)) {
#endif // IGL_PLATFORM_IOS
[encoder_ drawIndexedPrimitives:metalPrimitive
indexCount:indexCount
Expand All @@ -383,8 +383,7 @@
indexCount:indexCount
indexType:indexType
indexBuffer:buffer.get()
indexBufferOffset:indexBufferOffset
instanceCount:instanceCount];
indexBufferOffset:indexBufferOffset];
}
#endif // IGL_PLATFORM_IOS
}
Expand Down

0 comments on commit a0f56ae

Please sign in to comment.