fix fog.End error
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 2 Sep 2003 13:36:03 +0000 (13:36 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 2 Sep 2003 13:36:03 +0000 (13:36 +0000)
src/mesa/main/program.c

index 07ab420..fe816e3 100644 (file)
@@ -590,7 +590,7 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[],
       value[0] = ctx->Fog.Density;
       value[1] = ctx->Fog.Start;
       value[2] = ctx->Fog.End;
-      value[3] = 1.0F / (ctx->Fog.End - ctx->Fog.End);
+      value[3] = 1.0F / (ctx->Fog.End - ctx->Fog.Start);
       return;
    case STATE_CLIPPLANE:
       {