From: Ian Romanick Date: Sat, 16 Apr 2011 01:46:43 +0000 (-0700) Subject: i965: gl_fragment_program::FogOption is always GL_NONE so don't check it X-Git-Tag: 062012170305~6151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8780c38983d9570004b4faed754f9d6a102cfb76;p=profile%2Fivi%2Fmesa.git i965: gl_fragment_program::FogOption is always GL_NONE so don't check it Reviewed-by: Eric Anholt Acked-by: Corbin Simpson Acked-by: Alex Deucher --- diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index b5ec55b..6674f16 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -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++;