Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions indra/newview/lldrawpoolalpha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ void LLDrawPoolAlpha::forwardRender(bool rigged)

gGL.setColorMask(true, false);

if (!rigged && getType() == LLDrawPoolAlpha::POOL_ALPHA_POST_WATER)
{ //render "highlight alpha" on final non-rigged pass
if (!rigged && (LLPipeline::sRenderingHUDs || getType() == LLDrawPoolAlpha::POOL_ALPHA_POST_WATER))
{ //render "highlight alpha" on final non-rigged pass for non-HUDs (HUDs only run pre-water alpha pass)
// NOTE -- hacky call here protected by !rigged instead of alongside "forwardRender"
// so renderDebugAlpha is executed while gls_pipeline_alpha and depth GL state
// variables above are still in scope
Expand All @@ -278,7 +278,7 @@ void LLDrawPoolAlpha::forwardRender(bool rigged)

void LLDrawPoolAlpha::renderDebugAlpha()
{
if (sShowDebugAlpha && !gCubeSnapshot)
if (sShowDebugAlpha && !gCubeSnapshot && !LLPipeline::sReflectionRender)
{
gHighlightProgram.bind();
gGL.diffuseColor4f(1, 0, 0, 1);
Expand Down
Loading