summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolwlsky.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-01-08 21:02:54 -0500
committerNat Goodspeed <nat@lindenlab.com>2024-01-08 21:02:54 -0500
commit525a885c7c1de879a1e767a526ff2da44dd132be (patch)
treeecb142b08f8d46b67d65877407d5275ad6c02183 /indra/newview/lldrawpoolwlsky.cpp
parentf31dc5aa78887c48391bc98313d56013411c3167 (diff)
parent77395eddc911e0801e50fd693f7bbaee8046aa95 (diff)
DRTVWR-589: Merge branch 'main' into DRTVWR-589.
Diffstat (limited to 'indra/newview/lldrawpoolwlsky.cpp')
-rw-r--r--indra/newview/lldrawpoolwlsky.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolwlsky.cpp b/indra/newview/lldrawpoolwlsky.cpp
index 05ee328e43..b14235f25c 100644
--- a/indra/newview/lldrawpoolwlsky.cpp
+++ b/indra/newview/lldrawpoolwlsky.cpp
@@ -87,6 +87,9 @@ void LLDrawPoolWLSky::endDeferredPass(S32 pass)
cloud_shader = nullptr;
sun_shader = nullptr;
moon_shader = nullptr;
+
+ // clear the depth buffer so haze shaders can use unwritten depth as a mask
+ glClear(GL_DEPTH_BUFFER_BIT);
}
void LLDrawPoolWLSky::renderDome(const LLVector3& camPosLocal, F32 camHeightLocal, LLGLSLShader * shader) const