add parenthesis around a bit-wise AND term in _tnl_InvalidateState()
authorBrian <brian@nostromo.localnet.net>
Tue, 27 Mar 2007 15:52:53 +0000 (09:52 -0600)
committerBrian <brian@nostromo.localnet.net>
Tue, 27 Mar 2007 15:52:53 +0000 (09:52 -0600)
src/mesa/tnl/t_context.c

index b7c2c6f9bdba250bf5349f66a50590708008473a..f2828321d8e6b4ed0c729c25adc0bc726fc1e122 100644 (file)
@@ -140,7 +140,7 @@ _tnl_InvalidateState( GLcontext *ctx, GLuint new_state )
    if (ctx->Fog.Enabled ||
        (ctx->FragmentProgram._Active &&
         (ctx->FragmentProgram._Current->FogOption != GL_NONE ||
-         ctx->FragmentProgram._Current->Base.InputsRead & FRAG_BIT_FOGC)))
+         (ctx->FragmentProgram._Current->Base.InputsRead & FRAG_BIT_FOGC))))
       RENDERINPUTS_SET( tnl->render_inputs_bitset, _TNL_ATTRIB_FOG );
 
    if (ctx->Polygon.FrontMode != GL_FILL ||