vbo: move attribute type assignment
authorBrian Paul <brianp@vmware.com>
Thu, 13 Oct 2016 20:43:36 +0000 (14:43 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 20 Oct 2016 15:47:21 +0000 (09:47 -0600)
commit1098e6957c2e740afc2a471223aae2fec46a2582
tree225a14b42220dd80b1a27c1b9520b97945e78c1a
parent4c3c9f1441a3034a4f9eb7d85ee25b4199e49146
vbo: move attribute type assignment

If the attribute type is changing, we would have found that earlier in
the ATTR_UNION() macro and would have called vbo_exec_fixup_vertex().
So move the assignment into that function so we don't do it every time.

No Piglit regressions.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/vbo/vbo_exec_api.c