summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-11-10 13:54:52 -0600
committerDave Parks <davep@lindenlab.com>2022-11-10 13:54:52 -0600
commite2cf375179b807b847414206bf79617e4e9889ae (patch)
treeaeea0719e49a4f8be458aefa26f7f3375eee9d97 /indra/newview
parent70b8e17f17045b95bf3bda241ca8e91fc94fa808 (diff)
SL-18573 Fix for HUD text being wrong color.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llhudtext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llhudtext.cpp b/indra/newview/llhudtext.cpp
index 7511dabd5b..5544f33aea 100644
--- a/indra/newview/llhudtext.cpp
+++ b/indra/newview/llhudtext.cpp
@@ -224,6 +224,10 @@ void LLHUDText::renderText()
}
text_color = segment_iter->mColor;
+ if (mOnHUDAttachment)
+ {
+ text_color = linearColor4(text_color);
+ }
text_color.mV[VALPHA] *= alpha_factor;
hud_render_text(segment_iter->getText(), render_position, *fontp, style, shadow, x_offset, y_offset, text_color, mOnHUDAttachment);