From: Ilia Mirkin Date: Wed, 17 Aug 2016 21:12:09 +0000 (-0400) Subject: vbo: add basevertex when looking up elements for vbo splitting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=659dc10d32b5a2ca61d23f2ae43c9e241aff6a26;p=mesa.git vbo: add basevertex when looking up elements for vbo splitting Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97351 Signed-off-by: Ilia Mirkin Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Marek Olšák --- diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c index daa09c211a1..ac4fe9e8127 100644 --- a/src/mesa/vbo/vbo_split_copy.c +++ b/src/mesa/vbo/vbo_split_copy.c @@ -243,7 +243,7 @@ begin( struct copy_context *copy, GLenum mode, GLboolean begin_flag ) static GLuint elt(struct copy_context *copy, GLuint elt_idx) { - GLuint elt = copy->srcelt[elt_idx]; + GLuint elt = copy->srcelt[elt_idx] + copy->prim->basevertex; GLuint slot = elt & (ELT_TABLE_SIZE-1); /* printf("elt %d\n", elt); */