more parenthesis
authorBrian <brian@yutani.localnet.net>
Tue, 27 Mar 2007 16:36:06 +0000 (10:36 -0600)
committerBrian <brian@yutani.localnet.net>
Tue, 27 Mar 2007 22:06:47 +0000 (16:06 -0600)
src/mesa/tnl/t_context.c

index f2828321d8e6b4ed0c729c25adc0bc726fc1e122..255c2bdf90dbec5ac53cf891684855e90c1fbefc 100644 (file)
@@ -120,7 +120,7 @@ _tnl_InvalidateState( GLcontext *ctx, GLuint new_state )
 
       RENDERINPUTS_ZERO( tnl->render_inputs_bitset );
       RENDERINPUTS_SET( tnl->render_inputs_bitset, _TNL_ATTRIB_POS );
-      if (!fp || fp->Base.InputsRead & FRAG_BIT_COL0) {
+      if (!fp || (fp->Base.InputsRead & FRAG_BIT_COL0)) {
          RENDERINPUTS_SET( tnl->render_inputs_bitset, _TNL_ATTRIB_COLOR0 );
       }
       for (i = 0; i < ctx->Const.MaxTextureCoordUnits; i++) {