i965: gl_fragment_program::FogOption is always GL_NONE so don't check it
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 16 Apr 2011 01:46:43 +0000 (18:46 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 22 Apr 2011 00:33:24 +0000 (17:33 -0700)
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Corbin Simpson <MostAwesomeDude@gmail.com>
Acked-by: Alex Deucher <alexdeucher@gmail.com>
src/mesa/drivers/dri/i965/brw_program.c

index b5ec55b2ae3c13c4ec0f3a49dd54116cf38fac8c..6674f1640c83eb72cd680b40bfe7266925bb77be 100644 (file)
@@ -134,11 +134,6 @@ static GLboolean brwProgramStringNotify( struct gl_context *ctx,
          brw_fragment_program_const(brw->fragment_program);
       struct gl_shader_program *shader_program;
 
-      if (fprog->FogOption) {
-         _mesa_append_fog_code(ctx, fprog, GL_TRUE);
-         fprog->FogOption = GL_NONE;
-      }
-
       if (newFP == curFP)
         brw->state.dirty.brw |= BRW_NEW_FRAGMENT_PROGRAM;
       newFP->id = brw->program_id++;