From: Brian Paul Date: Mon, 2 May 2011 19:19:09 +0000 (-0600) Subject: st/mesa: remove primitive restart assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d89c6689df045bdd1760174bf33ea33190f6c43d;p=mesa.git st/mesa: remove primitive restart assertion Reviewed-by: Jakob Bornecrantz --- 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 */