From 14ee1c518997ce50933209d09110da3d894da3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?miKa=E3=81=B4=E3=82=87=E3=82=93?= Date: Sat, 14 Jan 2017 08:38:00 +0100 Subject: [PATCH] Make Second Life glow again. Thank you Shyotl for hand-holding and instructions! --- indra/newview/pipeline.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 971af78f7..f5556cf6f 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -6999,15 +6999,17 @@ void LLPipeline::renderBloom(BOOL for_snapshot, F32 zoom_factor, int subfield, b LLGLEnable test(GL_ALPHA_TEST); gGL.setSceneBlendType(LLRender::BT_ADD_WITH_ALPHA); + + LLRenderTarget& target_screen = LLPipeline::sRenderDeferred ? mFinalScreen : mScreen; - mFinalScreen.bindTexture(0, 0); + target_screen.bindTexture(0, 0); gGL.color4f(1,1,1,1); gPipeline.enableLightsFullbright(LLColor4(1,1,1,1)); drawFullScreenRect(LLVertexBuffer::MAP_VERTEX | LLVertexBuffer::MAP_TEXCOORD0); - gGL.getTexUnit(0)->unbind(mFinalScreen.getUsage()); + gGL.getTexUnit(0)->unbind(target_screen.getUsage()); mGlow[1].flush(); }