summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolwater.cpp
diff options
context:
space:
mode:
authorDave Houlton <euclid@lindenlab.com>2021-11-12 15:11:08 -0700
committerDave Houlton <euclid@lindenlab.com>2021-11-22 15:22:28 -0700
commitbb379cb8ccb1d8622b5f5e0a63a0c1116cd57d91 (patch)
tree3ff925360b0ed8bf1ddfa00e97227672578cfc66 /indra/newview/lldrawpoolwater.cpp
parent40f2e70875db857c70b08369410046da6d873967 (diff)
SL-13565 disable reflection render pass when all non-void water is occluded
Diffstat (limited to 'indra/newview/lldrawpoolwater.cpp')
-rw-r--r--indra/newview/lldrawpoolwater.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/lldrawpoolwater.cpp b/indra/newview/lldrawpoolwater.cpp
index 2f3c52ecd2..1e638f3088 100644
--- a/indra/newview/lldrawpoolwater.cpp
+++ b/indra/newview/lldrawpoolwater.cpp
@@ -649,7 +649,6 @@ void LLDrawPoolWater::shade2(bool edge, LLGLSLShader* shader, const LLColor3& li
bool edge_patch = water->getIsEdgePatch();
if (edge_patch)
{
- //sNeedsReflectionUpdate = TRUE;
face->renderIndexed();
}
}
@@ -671,8 +670,12 @@ void LLDrawPoolWater::shade2(bool edge, LLGLSLShader* shader, const LLColor3& li
bool edge_patch = water->getIsEdgePatch();
if (!edge_patch)
{
- sNeedsReflectionUpdate = TRUE;
- sNeedsDistortionUpdate = TRUE;
+ if (!LLPipeline::sUseOcclusion)
+ {
+ // If occlusion is enabled, these are set within LLOcclusionCullingGroup::checkOcclusion()
+ sNeedsReflectionUpdate = TRUE;
+ sNeedsDistortionUpdate = TRUE;
+ }
face->renderIndexed();
}
}