From 3a390a033d32778284a8b112f40f17ad2124add6 Mon Sep 17 00:00:00 2001 From: Tofu Linden Date: Sun, 9 May 2010 13:49:41 +0100 Subject: followup for glow glitch caused by EXT-7179 fix --- indra/newview/pipeline.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 05f14ff8f4..7b7a551fb3 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -6577,7 +6577,9 @@ void LLPipeline::renderDeferredLighting() else { mScreen.bindTarget(); - // clear color buffer here? doesn't seem to matter. + // clear color buffer here - zeroing alpha (glow) is important or it will accumulate against sky + glClearColor(0,0,0,0); + mScreen.clear(GL_COLOR_BUFFER_BIT); } if (gSavedSettings.getBOOL("RenderDeferredAtmospheric")) -- cgit v1.2.3