From 62d41162bbde86b181afd9e550d49b918fa02831 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathias=20Fr=C3=B6hlich?= Date: Mon, 1 Aug 2016 06:55:35 +0200 Subject: [PATCH] mesa: Copy bitmask of VBOs in the VAO on gl{Push,Pop}Attrib. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit On gl{Push,Pop}Attrib(GL_CLIENT_VERTEX_ARRAY_BIT) take care that gl_vertex_array_object::VertexAttribBufferMask matches the bound buffer object in the gl_vertex_array_object::VertexBinding array. Signed-off-by: Mathias Fröhlich Reviewed-by: Brian Paul Reviewed-by: Fredrik Höglund --- src/mesa/main/attrib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index f859191f69c..ff5f0f1f9fe 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1489,6 +1489,8 @@ copy_array_object(struct gl_context *ctx, /* _Enabled must be the same than on push */ dest->_Enabled = src->_Enabled; + /* The bitmask of bound VBOs needs to match the VertexBinding array */ + dest->VertexAttribBufferMask = src->VertexAttribBufferMask; dest->NewArrays = src->NewArrays; } -- 2.30.2