diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-08-17 17:12:09 -0400 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-08-18 20:26:22 -0400 |
commit | 659dc10d32b5a2ca61d23f2ae43c9e241aff6a26 (patch) | |
tree | 78d581f6e431a210fbfbf9e9872aa20b231ece88 | |
parent | 07ccec002b5631da7fa568a332bfb2143adb4f89 (diff) |
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 <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r-- | src/mesa/vbo/vbo_split_copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_split_copy.c b/src/mesa/vbo/vbo_split_copy.c index daa09c211a1c..ac4fe9e8127a 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); */ |