Mesa (master): mesa: When copying a VAO also copy the vertex attribute mode.
Mathias Fröhlich
frohlich at kemper.freedesktop.org
Fri Mar 23 19:54:21 UTC 2018
Module: Mesa
Branch: master
Commit: 19526a57f58bba7e275388cf07b1c4568b2e03af
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=19526a57f58bba7e275388cf07b1c4568b2e03af
Author: Mathias Fröhlich <mathias.froehlich at web.de>
Date: Thu Mar 22 05:34:09 2018 +0100
mesa: When copying a VAO also copy the vertex attribute mode.
Reviewed-by: Brian Paul <brianp at vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
---
src/mesa/main/attrib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
index 9d3aa728a1..9c632ffb51 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;
}
More information about the mesa-commit
mailing list