ib += istart;
- fetch_start = min_index + elt_bias;
- fetch_count = max_index - min_index + 1;
-
/* use the ib directly */
if (min_index == 0 && sizeof(ib[0]) == sizeof(draw_elts[0])) {
if (icount > vsplit->max_vertices)
}
/* this is faster only when we fetch less elements than the normal path */
- if (fetch_count > icount)
+ if (max_index - min_index > icount - 1)
return FALSE;
if (elt_bias < 0 && min_index < -elt_bias)
return FALSE;
}
+ fetch_start = min_index + elt_bias;
+ fetch_count = max_index - min_index + 1;
+
if (!draw_elts) {
if (min_index == 0) {
for (i = 0; i < icount; i++) {