From f63b92da5ec806e47a61e14b46fce9eb46299d27 Mon Sep 17 00:00:00 2001 From: Haroon Qureshi Date: Fri, 29 May 2026 08:08:47 -0700 Subject: [PATCH] Clear draw queue instead of failing if rendering skipped. PiperOrigin-RevId: 923420183 Change-Id: I34aac76810a7bf0e4a0394ebe27b45a8fc32f110 --- src/experimental/filament/filament/renderable.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/experimental/filament/filament/renderable.cc b/src/experimental/filament/filament/renderable.cc index 04665f22..93d0e93f 100644 --- a/src/experimental/filament/filament/renderable.cc +++ b/src/experimental/filament/filament/renderable.cc @@ -237,11 +237,7 @@ void Renderable::Prepare(std::span requests) { // We assume BindMaterialInstance will be called with the same requests in // the same order. As such, we'll just store the draw state in a deque rather // than trying to perform any kind of matching with the requests. - if (!draw_queue_.empty()) { - mju_error( - "Expected all previous draw calls to be bound before preparing new " - "draw calls."); - } + draw_queue_.clear(); curr_state_ = DrawState(); int num_reflections = 0;