Mesa (master): mesa: update vao _EnabledWithMapMode in copy_array_object
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 23 16:14:25 UTC 2021
Module: Mesa
Branch: master
Commit: e346f61a91266bde48cc0857f82ca6348e38dc03
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e346f61a91266bde48cc0857f82ca6348e38dc03
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Mon Feb 22 21:05:57 2021 +0100
mesa: update vao _EnabledWithMapMode in copy_array_object
Otherwise it can be out of sync.
Fixes: 306f1ef417a ("mesa: precompute _mesa_get_vao_vp_inputs")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4331
Reviewed-by: Witold Baryluk <witold.baryluk at gmail.com>
Tested-by: Witold Baryluk <witold.baryluk at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Zoltán Böszörményi <zboszor at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9199>
---
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 60615872ea8..b48c1185d6c 100644
--- a/src/mesa/main/attrib.c
+++ b/src/mesa/main/attrib.c
@@ -1348,6 +1348,7 @@ copy_array_object(struct gl_context *ctx,
/* Enabled must be the same than on push */
dest->Enabled = src->Enabled;
+ dest->_EnabledWithMapMode = src->_EnabledWithMapMode;
dest->_EffEnabledVBO = src->_EffEnabledVBO;
dest->_EffEnabledNonZeroDivisor = src->_EffEnabledNonZeroDivisor;
/* The bitmask of bound VBOs needs to match the VertexBinding array */
More information about the mesa-commit
mailing list