diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-09 15:01:17 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-09 15:01:17 +0100 |
commit | ccc50f752223fb96ee97690e50725d204c003f55 (patch) | |
tree | 6ea5ab801974915b972bb2a48e63c59cde3d2279 /indra/newview/pipeline.cpp | |
parent | 8f2ba1df9d93b723f64726c48a66b6ffe4228b08 (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.cpp | 4 |
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 { |