i965: gl_fragment_program::FogOption is always GL_NONE so don't check it

Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Corbin Simpson <MostAwesomeDude@gmail.com>
Acked-by: Alex Deucher <alexdeucher@gmail.com>
This commit is contained in:
Ian Romanick 2011-04-15 18:46:43 -07:00
parent f0188d4b08
commit 8780c38983

View 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++;