Skip to content
Snippets Groups Projects
Commit adc816a1 authored by Samuel Pitoiset's avatar Samuel Pitoiset
Browse files

nv50: avoid segfault with enabled but unbound vertex attrib


Before validating vertex arrays we need to check if a VBO is present.
Checking if vb->buffer is not NULL fixes the issue.

Fixes the following piglit test:
  gl-3.1-vao-broken-attrib

Signed-off-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
parent ec151e2f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment