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>
This commit is contained in:
parent
07ccec002b
commit
659dc10d32
|
@ -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); */
|
||||
|
|
Loading…
Reference in New Issue