Skip to content

Commit

Permalink
Fix an assert that prevented instancing to work
Browse files Browse the repository at this point in the history
FIXES=[384588566]
  • Loading branch information
pixelflinger committed Dec 18, 2024
1 parent 6a54763 commit 9ce11b3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions filament/src/RenderPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,6 @@ RenderPass::Command* RenderPass::generateCommandsImpl(RenderPass::CommandTypeFla
cmd.info.hasMorphing = (bool)morphing.handle;
cmd.info.hasSkinning = (bool)skinning.handle;

assert_invariant(cmd.info.hasHybridInstancing || cmd.info.instanceCount <= 1);

// soaInstanceInfo[i].count is the number of instances the user has requested, either for
// manual or hybrid instancing. Instanced stereo multiplies the number of instances by the
// eye count.
Expand Down

0 comments on commit 9ce11b3

Please sign in to comment.