vbo: simplify some code in vbo_exec_wrap_buffers()
authorBrian Paul <brianp@vmware.com>
Fri, 16 Oct 2015 02:18:32 +0000 (20:18 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 20 Oct 2015 18:52:41 +0000 (12:52 -0600)
commitd24c3a680e9282c11bd411d0c4dbcff561c0f4ca
tree39c9264f7097d681fb85a46f7d210119c9428593
parent1637cec8f894f80937fe7c1b1f4fe4d245d6005b
vbo: simplify some code in vbo_exec_wrap_buffers()

Use a new 'last_prim' pointer to simplify things.

v2: remove unneeded assert(exec->vtx.prim_count > 0)

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_api.c