summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-09-01 16:10:57 -0600
committerBrian Paul <[email protected]>2009-09-01 17:39:32 -0600
commit84d6bed4d6844110af23a995e2fad0280a92d46c (patch)
tree3040b93fef2bec88494471ed1680bb369e4c93d0
parent25e5a6f279cec0863dcc341805aa7ca71189b626 (diff)
mesa: change conditional to match the previous one
-rw-r--r--src/mesa/main/texenvprogram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c
index 7efb10c5a0f..b316c258098 100644
--- 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 */