use FRAG_BIT_TEX()
authorBrian <brian@nostromo.localnet.net>
Wed, 24 Jan 2007 21:14:14 +0000 (14:14 -0700)
committerBrian <brian@nostromo.localnet.net>
Wed, 24 Jan 2007 21:14:14 +0000 (14:14 -0700)
src/mesa/tnl/t_vp_build.c

index 5e146bfb3600e66d17e84606d9632cb9b3f63fe4..d80afaf245239c02ea521446aa9a5332df75ceab 100644 (file)
@@ -1213,7 +1213,7 @@ static void build_texture_transform( struct tnl_program *p )
 
    for (i = 0; i < MAX_TEXTURE_UNITS; i++) {
 
-      if (!(p->state->fragprog_inputs_read & (FRAG_BIT_TEX0<<i)))
+      if (!(p->state->fragprog_inputs_read & (FRAG_BIT_TEX(i))))
         continue;
                                                             
       if (p->state->unit[i].texgen_enabled ||