OSDN Git Service

st/mesa: remove primitive restart assertion
authorBrian Paul <brianp@vmware.com>
Mon, 2 May 2011 19:19:09 +0000 (13:19 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 19 Oct 2011 16:24:52 +0000 (10:24 -0600)
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
src/mesa/state_tracker/st_draw.c

index 7adf90d..20ba993 100644 (file)
@@ -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 */