diff options
author | Rye Cogtail <rye@lindenlab.com> | 2024-10-03 02:55:57 -0400 |
---|---|---|
committer | Rye Cogtail <rye@lindenlab.com> | 2024-10-03 03:08:11 -0400 |
commit | e8e258be1f1dcd25f7c2fa7f01836050c9bd80fc (patch) | |
tree | d00604e4f636ab888044b7138f58d9a6b4b52dc0 | |
parent | 4d92e15a79f697917c4a2ba67e03742d488e2a9d (diff) |
Fix pink flash when window is resized introduced in 6ebd6494a75d9b3d34e45655d79d0027fbba3898
-rw-r--r-- | indra/newview/pipeline.cpp | 4 |
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 |