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 7adf90de7377551c4fef6acc8d0cadaf90edd035..20ba993800a635b2eeeb011b6efcd258c3112e8d 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 */