aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/program
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-05-09 09:35:45 +0000
committermarha <marha@users.sourceforge.net>2011-05-09 09:35:45 +0000
commit43b2398ee28e9144fd51eb9994d67c4c9a198c9c (patch)
treeaf05c516b61241b6444059697ce94eee092ba8ff /mesalib/src/mesa/program
parent151019725213fc50a8aa4db8c4524387fea8f476 (diff)
downloadvcxsrv-43b2398ee28e9144fd51eb9994d67c4c9a198c9c.tar.gz
vcxsrv-43b2398ee28e9144fd51eb9994d67c4c9a198c9c.tar.bz2
vcxsrv-43b2398ee28e9144fd51eb9994d67c4c9a198c9c.zip
libXext libX11 mkfontscale mesa git update 9 May 2011
Diffstat (limited to 'mesalib/src/mesa/program')
-rw-r--r--mesalib/src/mesa/program/prog_statevars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/mesa/program/prog_statevars.c b/mesalib/src/mesa/program/prog_statevars.c
index d94d7fe5d..16f9690e8 100644
--- a/mesalib/src/mesa/program/prog_statevars.c
+++ b/mesalib/src/mesa/program/prog_statevars.c
@@ -459,7 +459,7 @@ _mesa_fetch_state(struct gl_context *ctx, const gl_state_index state[],
value[0] = (ctx->Fog.End == ctx->Fog.Start)
? 1.0f : (GLfloat)(-1.0F / (ctx->Fog.End - ctx->Fog.Start));
value[1] = ctx->Fog.End * -value[0];
- value[2] = (GLfloat)(ctx->Fog.Density * ONE_DIV_LN2);
+ value[2] = (GLfloat)(ctx->Fog.Density * M_LOG2E); /* M_LOG2E == 1/ln(2) */
value[3] = (GLfloat)(ctx->Fog.Density * ONE_DIV_SQRT_LN2);
return;