From 6d13430d78f2fa18577fc2a43e8d182852e826b7 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Fri, 3 May 2019 10:33:30 -0700 Subject: Make sure cloud_color has non-garbage alpha (no offense to 4.59e-41). --- indra/newview/llsettingsvo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3