summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-09-02 13:36:03 +0000
committerBrian Paul <[email protected]>2003-09-02 13:36:03 +0000
commit0d4da529bd2012469ea620cb13f0ab18b3f99bbe (patch)
treecced1421f3a6fac61fee5d5fc880404cf4304a5f /src/mesa
parentb3680df593acc113fbbd1cef92baf441276ace31 (diff)
fix fog.End error
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/program.c b/src/mesa/main/program.c
index 07ab420bcf7..fe816e344b7 100644
--- a/src/mesa/main/program.c
+++ b/src/mesa/main/program.c
@@ -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:
{