OSDN Git Service

mesa: change conditional to match the previous one
authorBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 22:10:57 +0000 (16:10 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 23:39:32 +0000 (17:39 -0600)
src/mesa/main/texenvprogram.c

index 7efb10c..b316c25 100644 (file)
@@ -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 */