mesa/main: make use of lookup_samplerobj_locked()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 9 Mar 2017 09:50:14 +0000 (10:50 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 9 Mar 2017 10:01:37 +0000 (11:01 +0100)
commitd54b4986946c306e7efb91cdc54227dfe3c90895
tree609e6a65a2ae6103bc9c658addabebd70f6f464f
parent58b4ae0411c3149e865b02bc0992d4d10ae6d5a8
mesa/main: make use of lookup_samplerobj_locked()

There is no need to check sampler == 0 twice. This removes now
unused _mesa_lookup_samplerobj_locked().

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/samplerobj.c