mesa: move call to update_texture_compare_function()

Another conditional can be avoided.
This commit is contained in:
Brian Paul
2009-03-02 15:21:50 -07:00
parent e232471baa
commit 6c75d7b4e6
+1 -3
View File
@@ -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);
}