summaryrefslogtreecommitdiff
path: root/indra/newview/llvosky.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-12-06 10:18:46 -0600
committerDave Parks <davep@lindenlab.com>2022-12-06 10:18:46 -0600
commit03da83f23513fdca2073203eddafeef3662e4be1 (patch)
treec1cc2e562e793bbfa1e89941d6756e6df0d5d0ec /indra/newview/llvosky.cpp
parentc489481ec5edd0470553eca9b7c4cecfe994926c (diff)
SL-18788 Fix for legacy shiny not working until after restart when reflections probes are disabled.
Diffstat (limited to 'indra/newview/llvosky.cpp')
-rw-r--r--indra/newview/llvosky.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp
index 5adc057484..d5979b2280 100644
--- a/indra/newview/llvosky.cpp
+++ b/indra/newview/llvosky.cpp
@@ -525,11 +525,6 @@ void LLVOSky::calc()
void LLVOSky::initCubeMap()
{
- if (LLPipeline::sReflectionProbesEnabled)
- {
- return;
- }
-
std::vector<LLPointer<LLImageRaw> > images;
for (S32 side = 0; side < NUM_CUBEMAP_FACES; side++)
{
@@ -697,7 +692,7 @@ bool LLVOSky::updateSky()
LLHeavenBody::setInterpVal( mInterpVal );
updateDirections(psky);
- if (!mCubeMap)
+ if (!mCubeMap || LLPipeline::sReflectionProbesEnabled)
{
mCubeMapUpdateStage = NUM_CUBEMAP_FACES;
mForceUpdate = FALSE;