projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25e5a6f
)
mesa: change conditional to match the previous one
author
Brian Paul
<brianp@vmware.com>
Tue, 1 Sep 2009 22:10:57 +0000
(16:10 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 1 Sep 2009 23:39:32 +0000
(17:39 -0600)
src/mesa/main/texenvprogram.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texenvprogram.c
b/src/mesa/main/texenvprogram.c
index 7efb10c5a0f36e7ab7e007ce27466b70d7539094..b316c258098851ddc98cd7b12b1e7d32cfbdf5dd 100644
(file)
--- a/
src/mesa/main/texenvprogram.c
+++ b/
src/mesa/main/texenvprogram.c
@@
-1401,7
+1401,7
@@
create_new_program(GLcontext *ctx, struct state_key *key,
/* Second pass - emit combine instructions to build final color:
*/
for (unit = 0 ; unit < ctx->Const.MaxTextureUnits; unit++)
- if (key->
enabled_units & (1<<unit)
) {
+ if (key->
unit[unit].enabled
) {
p.src_previous = emit_texenv( &p, unit );
reserve_temp(&p, p.src_previous); /* don't re-use this temp reg */
release_temps(ctx, &p); /* release all temps */