SL-18454 Fix for HUDs with alpha mask using wrong shader.

master
Dave Parks 2022-10-27 10:34:54 -05:00
parent 0e02f25604
commit eb4581edf2
2 changed files with 3 additions and 1 deletions

View File

@ -512,7 +512,7 @@ void LLDrawPoolFullbrightAlphaMask::renderPostDeferred(S32 pass)
LLGLSLShader* shader = nullptr;
if (LLPipeline::sRenderingHUDs)
{
shader = &gObjectFullbrightAlphaMaskProgram;
shader = &gDeferredFullbrightAlphaMaskProgram;
}
else if (LLPipeline::sRenderDeferred)
{

View File

@ -1597,6 +1597,7 @@ void render_ui_2d()
// render outline for HUD
if (isAgentAvatarValid() && gAgentCamera.mHUDCurZoom < 0.98f)
{
gUIProgram.bind();
gGL.pushMatrix();
S32 half_width = (gViewerWindow->getWorldViewWidthScaled() / 2);
S32 half_height = (gViewerWindow->getWorldViewHeightScaled() / 2);
@ -1607,6 +1608,7 @@ void render_ui_2d()
gGL.color4fv(LLColor4::white.mV);
gl_rect_2d(-half_width, half_height, half_width, -half_height, FALSE);
gGL.popMatrix();
gUIProgram.unbind();
stop_glerror();
}