Refactor the loop in unbind_texobj_from_texunits.
authorIan Romanick <idr@us.ibm.com>
Thu, 10 May 2007 04:51:49 +0000 (21:51 -0700)
committerIan Romanick <idr@us.ibm.com>
Thu, 10 May 2007 15:20:41 +0000 (08:20 -0700)
commit87a980a795b29c5114c07a74aa5d95b6e7a7f971
treead78157c5ce95959fc4631aa8662c46a0983e816
parente282f89a380bfbc8ad4840b535b499541635ca9f
Refactor the loop in unbind_texobj_from_texunits.

Common code was pulled out of the per-target if-statment and put at the end
of the for-loop.  The common code is guarded by a new variable, curr, that
is set to point to the unit's current target in each if-statement.
src/mesa/main/texobj.c