OSDN Git Service

st/mesa: exit the update fragment samplers/textures loops early.
authorDave Airlie <airlied@redhat.com>
Wed, 8 Feb 2012 13:58:14 +0000 (13:58 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 9 Feb 2012 19:39:30 +0000 (19:39 +0000)
commit23c52caafba52c77092b9721bd4601f8ea592625
tree66bfeb6be1fcde82097b0e2430187eddfc148c29
parent86163b81a49deb1df84d25a06333649949007c5a
st/mesa: exit the update fragment samplers/textures loops early.

If we have no more enabled samplers and we've reset all the previously
used ones, no need to keep going around this loop.

(just moved some stuff around to clean it up a bit).

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_sampler.c
src/mesa/state_tracker/st_atom_texture.c