OSDN Git Service

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 f282832..255c2bd 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++) {