mesa/main/ff_frag: Don't bother with VARYING_BIT_FOGC.
authorGustaw Smolarczyk <wielkiegie@gmail.com>
Thu, 30 Mar 2017 18:09:24 +0000 (20:09 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 8 Apr 2017 18:29:58 +0000 (20:29 +0200)
It's not used.

Signed-off-by: Gustaw Smolarczyk <wielkiegie@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/ff_fragment_shader.cpp

index 95c74e2b9210ff7391a91f8cc56eb9ecb45d1814..05641997dec17c7f81bb5df34975f975b92e9129 100644 (file)
@@ -449,10 +449,8 @@ static GLuint make_state_key( struct gl_context *ctx,  struct state_key *key )
    }
 
    /* _NEW_FOG */
-   if (ctx->Fog.Enabled) {
+   if (ctx->Fog.Enabled)
       key->fog_mode = translate_fog_mode(ctx->Fog.Mode);
-      inputs_referenced |= VARYING_BIT_FOGC; /* maybe */
-   }
 
    /* _NEW_BUFFERS */
    key->num_draw_buffers = ctx->DrawBuffer->_NumColorDrawBuffers;