if (indirect && indirect->buffer) {
unsigned draw_count = 0;
+ /* num_draws can only be 1 with indirect draws. */
+ assert(num_draws == 1);
+
/* Get the number of draws. */
if (indirect->indirect_draw_count) {
pipe_buffer_read(pipe, indirect->indirect_draw_count,
u_vbuf_split_indexed_multidraw(mgr, &new_info, drawid_offset, data,
indirect->stride, draw_count);
free(data);
+ /* We're done (as num_draws is 1), so return early. */
return;
}
u_vbuf_split_indexed_multidraw(mgr, &new_info, drawid_offset, data,
indirect->stride, draw_count);
free(data);
+ /* We're done (as num_draws is 1), so return early. */
return;
}