From 19526a57f58bba7e275388cf07b1c4568b2e03af Mon Sep 17 00:00:00 2001 From: Mathias Fröhlich Date: Thu, 22 Mar 2018 05:34:09 +0100 Subject: mesa: When copying a VAO also copy the vertex attribute mode. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- src/mesa/main/attrib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/main/attrib.c') 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; } -- cgit v1.2.3