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 9d3aa72..9c632ff 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;
 }