summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-05-03 10:33:30 -0700
committerGraham Linden <graham@lindenlab.com>2019-05-03 10:33:30 -0700
commit6d13430d78f2fa18577fc2a43e8d182852e826b7 (patch)
tree81ae08c2fa715cc42c3a6378c84c7c66828c1bf1 /indra
parent944d36a62f39002e7ba7273401c8c96bec9b55c3 (diff)
Make sure cloud_color has non-garbage alpha (no offense to 4.59e-41).
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llsettingsvo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llsettingsvo.cpp b/indra/newview/llsettingsvo.cpp
index 4bd8fcac0c..d307e1a947 100644
--- a/indra/newview/llsettingsvo.cpp
+++ b/indra/newview/llsettingsvo.cpp
@@ -707,7 +707,9 @@ void LLSettingsVOSky::applySpecial(void *ptarget)
shader->uniform4fv(LLShaderMgr::SUNLIGHT_COLOR, 1, sunDiffuse.mV);
shader->uniform4fv(LLShaderMgr::MOONLIGHT_COLOR, 1, moonDiffuse.mV);
- shader->uniform4fv(LLShaderMgr::CLOUD_COLOR, 1, psky->getCloudColor().mV);
+
+ LLColor4 cloud_color(psky->getCloudColor(), 1.0);
+ shader->uniform4fv(LLShaderMgr::CLOUD_COLOR, 1, cloud_color.mV);
}
F32 g = getGamma();