From d89c6689df045bdd1760174bf33ea33190f6c43d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 2 May 2011 13:19:09 -0600 Subject: [PATCH] st/mesa: remove primitive restart assertion Reviewed-by: Jakob Bornecrantz --- src/mesa/state_tracker/st_draw.c | 10 ++++------ 1 file 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 */ -- 2.30.2