[Mesa-dev] [PATCH 1/3] mesa: Fix VAO buffer object tracking.
Mathias.Froehlich at gmx.net
Mathias.Froehlich at gmx.net
Mon Feb 5 22:19:27 UTC 2018
From: Mathias Fröhlich <mathias.froehlich at web.de>
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 <Mathias.Froehlich at web.de>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
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 81b8fbe8ca..2fd9de630f 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -142,6 +142,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.14.3
More information about the mesa-dev
mailing list