From e75bf2f40f718a045d99756bb74fe357b6d9e6bd Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 17 Dec 2024 16:20:40 -0800 Subject: [PATCH] Fix an assert that prevented instancing to work FIXES=[384588566] --- filament/src/RenderPass.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/filament/src/RenderPass.cpp b/filament/src/RenderPass.cpp index 7a4de35a3c..5b9d94613e 100644 --- a/filament/src/RenderPass.cpp +++ b/filament/src/RenderPass.cpp @@ -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.