From 2f9eb0aad5a0d2177b52a22d012fd53438edf9fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathias=20Fr=C3=B6hlich?= Date: Sun, 4 Feb 2018 13:18:34 +0100 Subject: [PATCH] mesa: Fix VAO buffer object tracking. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When changing the attribute binding in the VAO we also need to account for getting rid of non vbo bits from VertexAttribBufferMask. Signed-off-by: Mathias Fröhlich Reviewed-by: Brian Paul --- src/mesa/main/varray.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index b268aaa9a3c..4dfc3546a8c 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -168,6 +168,8 @@ vertex_attrib_binding(struct gl_context *ctx, if (_mesa_is_bufferobj(vao->BufferBinding[bindingIndex].BufferObj)) vao->VertexAttribBufferMask |= array_bit; + else + vao->VertexAttribBufferMask &= ~array_bit; FLUSH_VERTICES(ctx, _NEW_ARRAY); -- 2.30.2