diff options
author | Brian Paul <[email protected]> | 2009-03-02 15:21:50 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-03-02 15:21:50 -0700 |
commit | 6c75d7b4e6b04ce9e5e8d188a143cb7a1670c953 (patch) | |
tree | 123c1ce9c0c4871b33ad393ed01a47adb069778c /src/mesa/main/texstate.c | |
parent | e232471baa3a7cfa7a76b9cfe55dfb7da79fedbe (diff) |
mesa: move call to update_texture_compare_function()
Another conditional can be avoided.
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r-- | src/mesa/main/texstate.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); } |