summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-04-26 00:28:29 +0200
committerMarek Olšák <[email protected]>2017-04-28 21:46:44 +0200
commitc3f37e9b50014e4230ff03b2f4c7788b720bd6a4 (patch)
tree842a48d0430ccf8992b8b9b60ac4bc0a901b95f6 /src/mesa/state_tracker
parent53cd67859dd82c697c1a22654f6389181ec639ee (diff)
st/mesa: use min_index and max_index directly from vbo
also remove the incorrect comment about primitive restart. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_draw.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index d710284b11c..e510d437baf 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -207,14 +207,9 @@ st_draw_vbo(struct gl_context *ctx,
setup_index_buffer(st, ib);
info.indexed = TRUE;
- if (min_index != ~0U && max_index != ~0U) {
- info.min_index = min_index;
- info.max_index = max_index;
- }
+ info.min_index = min_index;
+ info.max_index = max_index;
- /* The VBO module handles restart for the non-indexed GLDrawArrays
- * so we only set these fields for indexed drawing:
- */
setup_primitive_restart(ctx, &info, ib->index_size);
}
else {