aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/program
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-05-09 10:10:32 +0000
committermarha <marha@users.sourceforge.net>2011-05-09 10:10:32 +0000
commit5bb5135182a1a50b1b6659d8aa5168ebfbe71979 (patch)
tree7c8f16bf0832a90195bdbc4e8a9477158e0acf9b /mesalib/src/mesa/program
parentc721bc9b176ec37d8b80a92c89840658f8f6c458 (diff)
parent43b2398ee28e9144fd51eb9994d67c4c9a198c9c (diff)
downloadvcxsrv-5bb5135182a1a50b1b6659d8aa5168ebfbe71979.tar.gz
vcxsrv-5bb5135182a1a50b1b6659d8aa5168ebfbe71979.tar.bz2
vcxsrv-5bb5135182a1a50b1b6659d8aa5168ebfbe71979.zip
svn merge ^/branches/released .
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 6a3752810..ddda78e19 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;