mesa: When copying a VAO also copy the vertex attribute mode.
authorMathias Fröhlich <mathias.froehlich@web.de>
Thu, 22 Mar 2018 04:34:09 +0000 (05:34 +0100)
committerMathias Fröhlich <mathias.froehlich@web.de>
Fri, 23 Mar 2018 18:58:54 +0000 (19:58 +0100)
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/mesa/main/attrib.c

index 9d3aa728a13525ad389e4e806029b9d0a286410b..9c632ffb51d1588e6105c6b7efb9eded8b81918b 100644 (file)
@@ -1515,6 +1515,7 @@ copy_array_object(struct gl_context *ctx,
    dest->_Enabled = src->_Enabled;
    /* The bitmask of bound VBOs needs to match the VertexBinding array */
    dest->VertexAttribBufferMask = src->VertexAttribBufferMask;
+   dest->_AttributeMapMode = src->_AttributeMapMode;
    dest->NewArrays = src->NewArrays;
 }