summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2018-02-04 13:18:34 +0100
committerMathias Fröhlich <[email protected]>2018-02-09 04:21:36 +0100
commit2f9eb0aad5a0d2177b52a22d012fd53438edf9fe (patch)
tree8da210fa6de69cc50626468d4cdd74b19228fd17 /src/mesa/main
parentd8bca3809db504b919f18f530f4d88f29078a3e5 (diff)
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 <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/varray.c2
1 files changed, 2 insertions, 0 deletions
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);