draw: cleanup the distance culling code a bit
authorZack Rusin <zackr@vmware.com>
Tue, 11 Jun 2013 02:59:33 +0000 (22:59 -0400)
committerZack Rusin <zackr@vmware.com>
Thu, 13 Jun 2013 16:13:01 +0000 (12:13 -0400)
commitb63eeaf7b7df83a2c52c5ddb701454fd8a49b987
treebe743227fb435be4765ea00edaabda6b0b6b67df
parentc7e9b15010c32302d3cceac06ff8c34619deab7c
draw: cleanup the distance culling code a bit

We don't need the clamped variable, because we can just
return early. We should also do the regular culling after
the distance culling passes.
All spotted by Brian.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_cull.c