summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texstate.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index b29721eff6..2b07da805c 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);
}