We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eaf174 commit f63b92dCopy full SHA for f63b92d
1 file changed
src/experimental/filament/filament/renderable.cc
@@ -237,11 +237,7 @@ void Renderable::Prepare(std::span<const mjrRenderRequest*> requests) {
237
// We assume BindMaterialInstance will be called with the same requests in
238
// the same order. As such, we'll just store the draw state in a deque rather
239
// 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
- }
+ draw_queue_.clear();
245
curr_state_ = DrawState();
246
247
int num_reflections = 0;
0 commit comments