Permalink
Browse files

Make Second Life glow again.

Thank you Shyotl for hand-holding and instructions!
  • Loading branch information...
1 parent c262210 commit 14ee1c518997ce50933209d09110da3d894da3d8 @miKa-pyon miKa-pyon committed Jan 14, 2017
Showing with 4 additions and 2 deletions.
  1. +4 −2 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();
}

0 comments on commit 14ee1c5

Please sign in to comment.