mesa: Only update enabled VAO gl_vertex_array entries.
authorMathias Fröhlich <mathias.froehlich@web.de>
Sun, 4 Feb 2018 16:13:06 +0000 (17:13 +0100)
committerMathias Fröhlich <mathias.froehlich@web.de>
Fri, 9 Feb 2018 03:26:23 +0000 (04:26 +0100)
commit77cb2fc0bd8f57b646ef5ab674c1f76d873a22ae
treeba370ba824495a6b1a218c428c850ea0825b7b64
parent437cae411e7664e01d9c1c280317274b3ffc0734
mesa: Only update enabled VAO gl_vertex_array entries.

Instead of updating all modified gl_vertex_array_object::_VertexArray
entries just update those that are modified and enabled.
Also release buffer object from the _VertexArray that belong
to disabled attributes.

v2: Also set Ptr and Size to zero.

Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/varray.c
src/mesa/main/varray.h