From 8bdd71c4e3515d5b63301ab824821879ffb50746 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Tue, 22 Nov 2022 14:59:24 -0600 Subject: SL-18683 Fix for corruption on alpha blended PBR materials. --- indra/newview/pipeline.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'indra') diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index b59da7ad19..0f348e4bc4 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -8288,6 +8288,12 @@ void LLPipeline::bindLightFunc(LLGLSLShader& shader) { gGL.getTexUnit(channel)->bindManual(LLTexUnit::TT_TEXTURE, mLightFunc); } + + channel = shader.enableTexture(LLShaderMgr::DEFERRED_BRDF_LUT, LLTexUnit::TT_TEXTURE); + if (channel > -1) + { + mPbrBrdfLut.bindTexture(0, channel); + } } void LLPipeline::bindShadowMaps(LLGLSLShader& shader) @@ -8415,12 +8421,6 @@ void LLPipeline::bindDeferredShader(LLGLSLShader& shader, LLRenderTarget* light_ gGL.getTexUnit(channel)->setTextureAddressMode(LLTexUnit::TAM_CLAMP); } - channel = shader.enableTexture(LLShaderMgr::DEFERRED_BRDF_LUT, LLTexUnit::TT_TEXTURE); - if (channel > -1) - { - mPbrBrdfLut.bindTexture(0, channel); - } - #if 0 channel = shader.enableTexture(LLShaderMgr::DEFERRED_DEPTH, deferred_depth_target->getUsage()); if (channel > -1) -- cgit v1.2.3