diff options
author | Brian Paul <[email protected]> | 2009-09-01 16:10:57 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-01 17:39:32 -0600 |
commit | 84d6bed4d6844110af23a995e2fad0280a92d46c (patch) | |
tree | 3040b93fef2bec88494471ed1680bb369e4c93d0 /src/mesa/main | |
parent | 25e5a6f279cec0863dcc341805aa7ca71189b626 (diff) |
mesa: change conditional to match the previous one
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texenvprogram.c | 2 |
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 */ |