glx/drisw: avoid segfaults when we fail to get visual
authorDave Airlie <airlied@redhat.com>
Fri, 23 Mar 2012 18:37:16 +0000 (18:37 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 24 Mar 2012 13:05:19 +0000 (13:05 +0000)
commit2c778375a1356ffb8db1522bc3fc64c568c35cb1
tree4da4c68ebdee4c22d028c28420d0a97d5d24cf83
parent0f3aa9f4bd7daab354deb9268307c5628b460f6b
glx/drisw: avoid segfaults when we fail to get visual

piglit glx-tfp segfaults on llvmpipe when run vs a 16-bit radeon screen,

it now fails instead of segfaulting, much prettier.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glx/drisw_glx.c