summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolwlsky.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2019-04-30 21:47:00 +0000
committerRider Linden <rider@lindenlab.com>2019-04-30 21:47:00 +0000
commit7393c6f32886934dffd34c40c6e3f722f5dd721c (patch)
treed379f6e3cca1c4f9088fcd12725b41abc712ead1 /indra/newview/lldrawpoolwlsky.cpp
parent2f5dc54b2913184532acf38417535fa479a3e568 (diff)
parent1ff876a961dc00b7f162054ea1a9fed79240bffc (diff)
Merged in graham_linden/viewer-eep-rc-fixes (pull request #374)
SL-10856, SL-11071
Diffstat (limited to 'indra/newview/lldrawpoolwlsky.cpp')
-rw-r--r--indra/newview/lldrawpoolwlsky.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolwlsky.cpp b/indra/newview/lldrawpoolwlsky.cpp
index b9bc7678e6..9039c8cbcb 100644
--- a/indra/newview/lldrawpoolwlsky.cpp
+++ b/indra/newview/lldrawpoolwlsky.cpp
@@ -484,6 +484,9 @@ void LLDrawPoolWLSky::renderHeavenlyBodies()
{
sun_shader->bind();
+ gGL.getTexUnit(0)->setTextureColorSpace(LLTexUnit::TCS_SRGB);
+ gGL.getTexUnit(1)->setTextureColorSpace(LLTexUnit::TCS_SRGB);
+
if (tex_a && (!tex_b || (tex_a == tex_b)))
{
// Bind current and next sun textures
@@ -532,6 +535,9 @@ void LLDrawPoolWLSky::renderHeavenlyBodies()
{
moon_shader->bind();
+ gGL.getTexUnit(0)->setTextureColorSpace(LLTexUnit::TCS_SRGB);
+ gGL.getTexUnit(1)->setTextureColorSpace(LLTexUnit::TCS_SRGB);
+
if (tex_a && (!tex_b || (tex_a == tex_b)))
{
// Bind current and next sun textures