From: Mathias Fröhlich Date: Thu, 22 Mar 2018 04:34:09 +0000 (+0100) Subject: mesa: When copying a VAO also copy the vertex attribute mode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19526a57f58bba7e275388cf07b1c4568b2e03af;p=mesa.git mesa: When copying a VAO also copy the vertex attribute mode. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 9d3aa728a13..9c632ffb51d 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -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; }