vbo: Correctly handle source arrays in vbo_split_copy.
authorMathias Fröhlich <mathias.froehlich@web.de>
Tue, 13 Mar 2018 08:12:48 +0000 (09:12 +0100)
committerMathias Fröhlich <mathias.froehlich@web.de>
Thu, 15 Mar 2018 05:11:57 +0000 (06:11 +0100)
commit98f35ad63c23805c32654843f55208e675d4e4db
tree7a160f5dafea78de168fb54e836d908ecdf88d33
parent361f79c97f6eb4bfdb2162672d2ca8f3c486f22c
vbo: Correctly handle source arrays in vbo_split_copy.

The original approach did optimize away a bit too many fields.
Restablish the pointer into the original array and correctly feed that
one.

Reviewed-by: Brian Paul <brianp@vmware.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105471
Fixes: 64d2a20480547d5897fd9d7b8fd306f2625138cb
    mesa: Make gl_vertex_array contain pointers to first order VAO members.
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/mesa/vbo/vbo_split_copy.c