vbo: simplify some code in vbo_copy_vertices()
authorBrian Paul <brianp@vmware.com>
Fri, 16 Oct 2015 03:25:18 +0000 (21:25 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 20 Oct 2015 18:52:41 +0000 (12:52 -0600)
commitd916175c4d965942325bbb4a684fac45fb6ab9e2
tree8314bb6451a86b3e18b690e464e005fe4cafe4d2
parentd24c3a680e9282c11bd411d0c4dbcff561c0f4ca
vbo: simplify some code in vbo_copy_vertices()

As before, use a new 'last_prim' pointer to simplify things.  Plus, add
some const qualifiers.

v2: use 'sz' in another place, per Sinclair.  And update subject line.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
src/mesa/vbo/vbo_exec_draw.c