Skip to content

Commit e75bf2f

Browse files
committed
Fix an assert that prevented instancing to work
FIXES=[384588566]
1 parent 45b0164 commit e75bf2f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

filament/src/RenderPass.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,6 @@ RenderPass::Command* RenderPass::generateCommandsImpl(RenderPass::CommandTypeFla
680680
cmd.info.hasMorphing = (bool)morphing.handle;
681681
cmd.info.hasSkinning = (bool)skinning.handle;
682682

683-
assert_invariant(cmd.info.hasHybridInstancing || cmd.info.instanceCount <= 1);
684-
685683
// soaInstanceInfo[i].count is the number of instances the user has requested, either for
686684
// manual or hybrid instancing. Instanced stereo multiplies the number of instances by the
687685
// eye count.

0 commit comments

Comments
 (0)