From 0d4da529bd2012469ea620cb13f0ab18b3f99bbe Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 2 Sep 2003 13:36:03 +0000 Subject: fix fog.End error --- src/mesa/main/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/program.c') diff --git a/src/mesa/main/program.c b/src/mesa/main/program.c index 07ab420bcf..fe816e344b 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: { -- cgit v1.2.3