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@web.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Mathias Fröhlich 2018-02-04 13:18:34 +01:00
parent d8bca3809d
commit 2f9eb0aad5
1 changed files with 2 additions and 0 deletions

View File

@ -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);