summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorRye Mutt <rye@lindenlab.com>2024-10-03 11:49:38 -0400
committerGitHub <noreply@github.com>2024-10-03 11:49:38 -0400
commit49c661f6cf9ae0a75b93c870a00edba59df54189 (patch)
tree6be9403c60fd0e268da2017712488e7ed23de3cd /indra/newview/pipeline.cpp
parent4d92e15a79f697917c4a2ba67e03742d488e2a9d (diff)
parent6181a79170bce2987c1d98ec69ab7d69d4c7f138 (diff)
Merge pull request #2772 from RyeMutt/fix-pink-flash
Fix pink flash when window is resized
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index e7703b0ffe..84f026699e 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -8342,7 +8342,9 @@ void LLPipeline::renderDeferredLighting()
unbindDeferredShader(gDeferredBlurLightProgram);
}
screen_target->bindTarget();
- screen_target->invalidate(GL_COLOR_BUFFER_BIT);
+ // clear color buffer here - zeroing alpha (glow) is important or it will accumulate against sky
+ glClearColor(0, 0, 0, 0);
+ screen_target->clear(GL_COLOR_BUFFER_BIT);
if (RenderDeferredAtmospheric)
{ // apply sunlight contribution