Mesa (master): st/mesa: remove primitive restart assertion

Brian Paul brianp at kemper.freedesktop.org
Wed Oct 19 16:30:16 UTC 2011


Module: Mesa
Branch: master
Commit: d89c6689df045bdd1760174bf33ea33190f6c43d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d89c6689df045bdd1760174bf33ea33190f6c43d

Author: Brian Paul <brianp at vmware.com>
Date:   Mon May  2 13:19:09 2011 -0600

st/mesa: remove primitive restart assertion

Reviewed-by: Jakob Bornecrantz <jakob at vmware.com>

---

 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 7adf90d..20ba993 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 */




More information about the mesa-commit mailing list