summaryrefslogtreecommitdiff
path: root/indra/newview/llvosky.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-08-26 12:49:00 -0700
committerRichard Linden <none@none>2010-08-26 12:49:00 -0700
commit093e83386d5a132cc8947095f93ea6405aab6e3f (patch)
tree043184fa92c8a6a9f8e747eb13056616bb27ba20 /indra/newview/llvosky.cpp
parent2667c77a1cfb230ade472a047f46fd2bde7883c0 (diff)
parentce1a0c6bafad092f9687e3b5a6b4865569d96863 (diff)
merge
Diffstat (limited to 'indra/newview/llvosky.cpp')
-rw-r--r--indra/newview/llvosky.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp
index d73850cb49..bb80988854 100644
--- a/indra/newview/llvosky.cpp
+++ b/indra/newview/llvosky.cpp
@@ -975,7 +975,10 @@ void LLVOSky::calcAtmospherics(void)
}
temp2.mV[1] = llmax(0.f, lighty);
- temp2.mV[1] = 1.f / temp2.mV[1];
+ if(temp2.mV[1] > 0.f)
+ {
+ temp2.mV[1] = 1.f / temp2.mV[1];
+ }
componentMultBy(sunlight, componentExp((light_atten * -1.f) * temp2.mV[1]));
// Distance