st/mesa: use min_index and max_index directly from vbo

also remove the incorrect comment about primitive restart.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2017-04-26 00:28:29 +02:00
parent 53cd67859d
commit c3f37e9b50
1 changed files with 2 additions and 7 deletions

View File

@ -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 {