Clear draw queue instead of failing if rendering skipped.
PiperOrigin-RevId: 923420183 Change-Id: I34aac76810a7bf0e4a0394ebe27b45a8fc32f110
This commit is contained in:
committed by
Copybara-Service
parent
8eaf174a88
commit
f63b92da5e
@@ -237,11 +237,7 @@ void Renderable::Prepare(std::span<const mjrRenderRequest*> requests) {
|
|||||||
// We assume BindMaterialInstance will be called with the same requests in
|
// 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
|
// 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.
|
// than trying to perform any kind of matching with the requests.
|
||||||
if (!draw_queue_.empty()) {
|
draw_queue_.clear();
|
||||||
mju_error(
|
|
||||||
"Expected all previous draw calls to be bound before preparing new "
|
|
||||||
"draw calls.");
|
|
||||||
}
|
|
||||||
curr_state_ = DrawState();
|
curr_state_ = DrawState();
|
||||||
|
|
||||||
int num_reflections = 0;
|
int num_reflections = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user