Fix an assert that prevented instancing to work

FIXES=[384588566]
This commit is contained in:
Mathias Agopian
2024-12-17 16:20:40 -08:00
committed by Mathias Agopian
parent 45b0164c84
commit e75bf2f40f

View File

@@ -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.