Skip to content
Snippets Groups Projects
Commit 2a72e18a authored by Samuel Pitoiset's avatar Samuel Pitoiset Committed by Emil Velikov
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>
(cherry picked from commit adc816a1)
parent b70176d9
No related branches found
No related tags found
No related merge requests found
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