summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-01 17:50:55 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-01 17:50:55 +0000
commit3dc32880ae0f2f0f5499a7f271df666759fc220a (patch)
tree54558a9f405b95a1286e00a7f17594e51fe15c88 /indra/newview/pipeline.cpp
parente8899c4f4c2ae95f108b9bbf543e401debc9c588 (diff)
const fix.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index cb0baf77f1..b25c7c9212 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -4573,7 +4573,7 @@ void LLPipeline::setupHWLights(LLDrawPool* pool)
F32 light_radius = llmax(light->getLightRadius(), 0.001f);
- F32 x = (3.f * (1.f + light->getLightFalloff()));
+ F32 x = (3.f * (1.f + light->getLightFalloff())); // why this magic? probably trying to match a historic behavior.
float linatten = x / (light_radius); // % of brightness at radius
mHWLightColors[cur_light] = light_color;