summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-05-09 15:01:17 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-05-09 15:01:17 +0100
commitccc50f752223fb96ee97690e50725d204c003f55 (patch)
tree6ea5ab801974915b972bb2a48e63c59cde3d2279 /indra/newview/pipeline.cpp
parent8f2ba1df9d93b723f64726c48a66b6ffe4228b08 (diff)
followup for glow glitch caused by EXT-7179 fix
I knew I shouldn't have optimized those clears away! sigh!
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 7b7a551fb3..91352ed4f3 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -6572,7 +6572,9 @@ void LLPipeline::renderDeferredLighting()
if (LLViewerShaderMgr::instance()->getVertexShaderLevel(LLViewerShaderMgr::SHADER_DEFERRED) > 2)
{
mDeferredLight[1].bindTarget();
- // clear color buffer here? doesn't seem to matter.
+ // clear color buffer here (GI) - zeroing alpha (glow) is important or it will accumulate against sky
+ glClearColor(0,0,0,0);
+ mScreen.clear(GL_COLOR_BUFFER_BIT);
}
else
{