mesa: Copy bitmask of VBOs in the VAO on gl{Push,Pop}Attrib.
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>
This commit is contained in:
parent
c495c18b24
commit
62d41162bb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue