Mesa (master): mesa: Fix VAO buffer object tracking.

Mathias Fröhlich frohlich at kemper.freedesktop.org
Fri Feb 9 03:53:00 UTC 2018


Module: Mesa
Branch: master
Commit: 2f9eb0aad5a0d2177b52a22d012fd53438edf9fe
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f9eb0aad5a0d2177b52a22d012fd53438edf9fe

Author: Mathias Fröhlich <mathias.froehlich at web.de>
Date:   Sun Feb  4 13:18:34 2018 +0100

mesa: Fix VAO buffer object tracking.

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 b268aaa9a3..4dfc3546a8 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);
 




More information about the mesa-commit mailing list