aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstate.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-02-28 17:02:49 -0700
committerBrian Paul <[email protected]>2009-03-02 09:44:32 -0700
commitebabdf9920c1628741703704796a9361c1fc07bf (patch)
treed4b9977c273f4fb3ca5fe1e059aa4a680b82314c /src/mesa/main/texstate.c
parent555f0a88182e2b1af809b2d97abdac02814a2f28 (diff)
mesa: move update_texture_compare_function() call out of loop
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r--src/mesa/main/texstate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index e25c9e732c3..aded1270928 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -400,7 +400,6 @@ texture_override(GLcontext *ctx,
if (texObj->_Complete) {
texUnit->_ReallyEnabled = textureBit;
texUnit->_Current = texObj;
- update_texture_compare_function(ctx, texObj);
}
}
}
@@ -582,6 +581,9 @@ update_texture_state( GLcontext *ctx )
texUnit->CurrentTex[texIndex], 1 << texIndex);
}
+ if (texUnit->_Current)
+ update_texture_compare_function(ctx, texUnit->_Current);
+
if (!texUnit->_ReallyEnabled) {
continue;
}