summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/llinventory/llsettingssky.cpp2
-rw-r--r--indra/newview/pipeline.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp
index 1490708ca5..aa26cd8054 100644
--- a/indra/llinventory/llsettingssky.cpp
+++ b/indra/llinventory/llsettingssky.cpp
@@ -973,7 +973,7 @@ F32 LLSettingsSky::getSunMoonGlowFactor() const
bool LLSettingsSky::getIsSunUp() const
{
LLVector3 sunDir = getSunDirection();
- return sunDir.mV[2] >= 0.0f || !getIsMoonUp();
+ return sunDir.mV[2] >= 0.0f;
}
bool LLSettingsSky::getIsMoonUp() const
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 95ee1ef488..4cd63de70c 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -10280,7 +10280,7 @@ void LLPipeline::generateSunShadow(LLCamera& camera)
//far_clip = llmin(far_clip, 128.f);
far_clip = llmin(far_clip, camera.getFar());
- //far_clip = llmax(far_clip, 256.0f);
+ far_clip = llmax(far_clip, 256.0f);
F32 range = far_clip-near_clip;