projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e232471
)
mesa: move call to update_texture_compare_function()
author
Brian Paul
<brianp@vmware.com>
Mon, 2 Mar 2009 22:21:50 +0000
(15:21 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 2 Mar 2009 22:21:50 +0000
(15:21 -0700)
Another conditional can be avoided.
src/mesa/main/texstate.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstate.c
b/src/mesa/main/texstate.c
index b29721eff6b667a6818da90e4df204467247a9a6..2b07da805c05f09aa464edd27661c97259d5044b 100644
(file)
--- 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);
}