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 95c74e2..0564199 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;