summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-08-17 17:12:10 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2016-08-18 20:26:34 -0400
commit59bb8211804a471e87d4de54264f3e19ed4f435e (patch)
tree848d5faf4f444594c580ab1d973d3b9285386bd1
parent659dc10d32b5a2ca61d23f2ae43c9e241aff6a26 (diff)
downloadexternal_mesa3d-59bb8211804a471e87d4de54264f3e19ed4f435e.zip
external_mesa3d-59bb8211804a471e87d4de54264f3e19ed4f435e.tar.gz
external_mesa3d-59bb8211804a471e87d4de54264f3e19ed4f435e.tar.bz2
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 <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r--src/mesa/vbo/vbo_split.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mesa/vbo/vbo_split.c b/src/mesa/vbo/vbo_split.c
index 2f95746..79d7dd4 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.