summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2018-03-22 05:34:09 +0100
committerMathias Fröhlich <[email protected]>2018-03-23 19:58:54 +0100
commit19526a57f58bba7e275388cf07b1c4568b2e03af (patch)
tree0d7c385d2b81deef6a8cd558282a8907534a87bf /src/mesa/main
parent5a75019ad0270a974788a9b8648ba98ff4203768 (diff)
mesa: When copying a VAO also copy the vertex attribute mode.
Reviewed-by: Brian Paul <[email protected]> Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/attrib.c1
1 files changed, 1 insertions, 0 deletions
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;
}