llvmpipe: use pipe_sampler_view_release() to avoid segfault
authorJonathan Liu <net147@gmail.com>
Mon, 16 Dec 2013 01:24:00 +0000 (18:24 -0700)
committerBrian Paul <brianp@vmware.com>
Sun, 22 Dec 2013 14:07:56 +0000 (07:07 -0700)
commit7990ab58fa01cbebcefd63dd25af5fd6fdddf019
tree5fe4c8b1d350ff7dc16d36a76e323f8dc1516baa
parent670be71bd801fea876f7512865ed5f54340da9be
llvmpipe: use pipe_sampler_view_release() to avoid segfault

This fixes another case of faulting when freeing a pipe_sampler_view
that belongs to a previously destroyed context.

Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Jonathan Liu <net147@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_sampler.c