mesa: Copy bitmask of VBOs in the VAO on gl{Push,Pop}Attrib.
authorMathias Fröhlich <mathias.froehlich@web.de>
Mon, 1 Aug 2016 04:55:35 +0000 (06:55 +0200)
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>
Sat, 6 Aug 2016 04:27:37 +0000 (06:27 +0200)
On gl{Push,Pop}Attrib(GL_CLIENT_VERTEX_ARRAY_BIT) take
care that gl_vertex_array_object::VertexAttribBufferMask
matches the bound buffer object in the
gl_vertex_array_object::VertexBinding array.

Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Fredrik Höglund <fredrik@kde.org>
src/mesa/main/attrib.c

index f859191..ff5f0f1 100644 (file)
@@ -1489,6 +1489,8 @@ copy_array_object(struct gl_context *ctx,
 
    /* _Enabled must be the same than on push */
    dest->_Enabled = src->_Enabled;
+   /* The bitmask of bound VBOs needs to match the VertexBinding array */
+   dest->VertexAttribBufferMask = src->VertexAttribBufferMask;
    dest->NewArrays = src->NewArrays;
 }