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 07ab420bcf7bcc35f7a55215bff09e7ac72e9b80..fe816e344b7e6856bb6097476b963acd8fdd10de 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:
       {