diff options
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 7adf90de737..20ba993800a 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -638,13 +638,11 @@ handle_fallback_primitive_restart(struct pipe_context *pipe, info.primitive_restart = FALSE; if (!info.indexed) { - /* Splitting the draw arrays call is handled by the VBO module */ - assert(info.restart_index > info.max_index || info.restart_index < info.min_index); - - if (u_trim_pipe_prim(info.mode, &info.count)) - pipe->draw_vbo(pipe, &info); + /* Splitting the draw arrays call is handled by the VBO module */ + if (u_trim_pipe_prim(info.mode, &info.count)) + pipe->draw_vbo(pipe, &info); - return; + return; } /* info.indexed == TRUE */ |