mesa: simplify sampler setting code
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 4 Nov 2016 05:41:30 +0000 (16:41 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Fri, 6 Jan 2017 00:21:42 +0000 (11:21 +1100)
commit7cc61cf706e857e27ea3ce9578b9c480bfbc94a1
treedd9496b3d73fce531bd3512735319a2eb5d125a3
parent4807a83da0e0f5e3272e85504ee3b2213ef1910a
mesa: simplify sampler setting code

There is no need to loop over active samplers the code above this
would have already exited if the sampler was inactive, or errored
if the count was larger than the uniforms array size.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/uniform_query.cpp