diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2023-05-11 11:31:09 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2023-05-11 11:31:09 -0700 |
commit | 7d0903533c20a395e12c2d4c290fcde3ec6b2a53 (patch) | |
tree | 2f7ebdf065d34a7610560ef4c6c0282cae4c5865 /indra/newview/pipeline.cpp | |
parent | 69d444826d1feb58ae48f893083e22c01a50a93f (diff) |
SL-19236: Fix HUDs not rendering when transparent water graphics setting is off
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r-- | indra/newview/pipeline.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 4d9a8a594a..73e568f1ae 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -2239,12 +2239,18 @@ bool LLPipeline::getVisibleExtents(LLCamera& camera, LLVector3& min, LLVector3& static LLTrace::BlockTimerStatHandle FTM_CULL("Object Culling"); +// static +bool LLPipeline::isWaterClip() +{ + return (!sRenderTransparentWater || gCubeSnapshot) && !sRenderingHUDs; +} + void LLPipeline::updateCull(LLCamera& camera, LLCullResult& result) { LL_PROFILE_ZONE_SCOPED_CATEGORY_PIPELINE; //LL_RECORD_BLOCK_TIME(FTM_CULL); LL_PROFILE_GPU_ZONE("updateCull"); // should always be zero GPU time, but drop a timer to flush stuff out - bool water_clip = !sRenderTransparentWater && !sRenderingHUDs; + bool water_clip = isWaterClip(); if (water_clip) { |