OSDN Git Service

draw: (trivial) fix NULL pointer dereference
authorRoland Scheidegger <sroland@vmware.com>
Thu, 4 Jun 2015 12:35:59 +0000 (14:35 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 18 Jun 2015 12:29:04 +0000 (13:29 +0100)
commitf6e743ea389b4b2e068bb6d841a3a6c80bb80316
treeae9445c1f4f47ae24aaaa3846a77a3ad6b3c87f2
parent1812014fe8e7a6a0f74a73bd065fb76465e85003
draw: (trivial) fix NULL pointer dereference

This probably got broken when the samplers were converted to be indexed
by shader type.
Seen when looking at bug 89819 though I'm not sure if that really was what
the bug was about...

Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 6e5970ffee0129fb94d8b7f0ebd4fac3992e7dce)
src/gallium/auxiliary/draw/draw_llvm.c