Mesa (master): i965: gl_fragment_program:: FogOption is always GL_NONE so don't check it

Ian Romanick idr at kemper.freedesktop.org
Fri Apr 22 00:34:36 UTC 2011


Module: Mesa
Branch: master
Commit: 8780c38983d9570004b4faed754f9d6a102cfb76
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8780c38983d9570004b4faed754f9d6a102cfb76

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Fri Apr 15 18:46:43 2011 -0700

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

Reviewed-by: Eric Anholt <eric at anholt.net>
Acked-by: Corbin Simpson <MostAwesomeDude at gmail.com>
Acked-by: Alex Deucher <alexdeucher at gmail.com>

---

 src/mesa/drivers/dri/i965/brw_program.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

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




More information about the mesa-commit mailing list