diff options
author | Brian Paul <[email protected]> | 2011-05-02 13:19:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-10-19 10:24:52 -0600 |
commit | d89c6689df045bdd1760174bf33ea33190f6c43d (patch) | |
tree | 90776014a376760864faf6211533e9ab8f9d0fd8 /src/mesa/state_tracker | |
parent | 07c3e752f865b083b08d472f635b12ffbd1595d5 (diff) |
st/mesa: remove primitive restart assertion
Reviewed-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-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 */ |