summaryrefslogtreecommitdiff
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
commit08755849ab126c13580f3af38721f83cb5ce01ce (patch)
tree6ea5ab801974915b972bb2a48e63c59cde3d2279
parent3a390a033d32778284a8b112f40f17ad2124add6 (diff)
followup for glow glitch caused by EXT-7179 fix
I knew I shouldn't have optimized those clears away! sigh!
-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
{