From: Brian Paul Date: Mon, 2 Mar 2009 22:21:50 +0000 (-0700) Subject: mesa: move call to update_texture_compare_function() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c75d7b4e6b04ce9e5e8d188a143cb7a1670c953;p=mesa.git mesa: move call to update_texture_compare_function() Another conditional can be avoided. --- diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index b29721eff6b..2b07da805c0 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -576,9 +576,6 @@ update_texture_state( GLcontext *ctx ) } } - if (texUnit->_Current) - update_texture_compare_function(ctx, texUnit->_Current); - if (!texUnit->_ReallyEnabled) { _mesa_reference_texobj(&texUnit->_Current, NULL); continue; @@ -592,6 +589,7 @@ update_texture_state( GLcontext *ctx ) enabledFragUnits |= (1 << unit); update_tex_combine(ctx, texUnit); + update_texture_compare_function(ctx, texUnit->_Current); }