mesa/main: remove useless check in _mesa_IsSampler()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 1 Mar 2017 21:53:52 +0000 (22:53 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 6 Mar 2017 17:01:38 +0000 (18:01 +0100)
commit052c81faa1147ab758dc4430e4483c7d9fc5fe25
tree0ac8ff94825f1a9605f1d7dee5853f3176602868
parent5ae54c0cf7acfb792d2ca9b22cd5fb5ba811d32c
mesa/main: remove useless check in _mesa_IsSampler()

_mesa_lookup_samplerobj() returns NULL if sampler is 0.

v2: use _mesa_lookup...(...) != NULL

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/samplerobj.c