From: Ilia Mirkin Date: Wed, 17 Aug 2016 21:12:10 +0000 (-0400) Subject: vbo: remove unnecessary max_basevertex computation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59bb8211804a471e87d4de54264f3e19ed4f435e;p=mesa.git vbo: remove unnecessary max_basevertex computation The max basevertex is already computed and added into max_index by the caller, _tnl_draw_prims. Signed-off-by: Ilia Mirkin Reviewed-by: Marek Olšák --- diff --git a/src/mesa/vbo/vbo_split.c b/src/mesa/vbo/vbo_split.c index 2f957462a8c..79d7dd40834 100644 --- a/src/mesa/vbo/vbo_split.c +++ b/src/mesa/vbo/vbo_split.c @@ -108,14 +108,6 @@ void vbo_split_prims( struct gl_context *ctx, vbo_draw_func draw, const struct split_limits *limits ) { - GLint max_basevertex = prim->basevertex; - GLuint i; - - for (i = 1; i < nr_prims; i++) - max_basevertex = MAX2(max_basevertex, prim[i].basevertex); - - /* XXX max_basevertex is computed but not used, why? */ - if (ib) { if (limits->max_indices == 0) { /* Could traverse the indices, re-emitting vertices in turn.