Skip to content

Commit f63b92d

Browse files
haroonqcopybara-github
authored andcommitted
Clear draw queue instead of failing if rendering skipped.
PiperOrigin-RevId: 923420183 Change-Id: I34aac76810a7bf0e4a0394ebe27b45a8fc32f110
1 parent 8eaf174 commit f63b92d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/experimental/filament/filament/renderable.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,7 @@ void Renderable::Prepare(std::span<const mjrRenderRequest*> requests) {
237237
// We assume BindMaterialInstance will be called with the same requests in
238238
// the same order. As such, we'll just store the draw state in a deque rather
239239
// than trying to perform any kind of matching with the requests.
240-
if (!draw_queue_.empty()) {
241-
mju_error(
242-
"Expected all previous draw calls to be bound before preparing new "
243-
"draw calls.");
244-
}
240+
draw_queue_.clear();
245241
curr_state_ = DrawState();
246242

247243
int num_reflections = 0;

0 commit comments

Comments
 (0)