diff options
| author | Rye Mutt <rye@alchemyviewer.org> | 2024-07-26 06:19:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-26 13:19:34 +0300 |
| commit | 604cb4cb4dd71c0f90633e50d5b0108e3901c4ad (patch) | |
| tree | 71f6fbbd3278cebceb755c6543268b3cb7ef5d28 /indra/llui/llconsole.cpp | |
| parent | bc50d2c7d57618846a6cb318cd12e006270b64ae (diff) | |
Reduce utf8 to wstring conversion and llwstring temporaries during text draw (#2115)
Diffstat (limited to 'indra/llui/llconsole.cpp')
| -rw-r--r-- | indra/llui/llconsole.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/llconsole.cpp b/indra/llui/llconsole.cpp index fe4f991921..4f52f5936d 100644 --- a/indra/llui/llconsole.cpp +++ b/indra/llui/llconsole.cpp @@ -183,7 +183,7 @@ void LLConsole::draw() static LLCachedControl<F32> console_bg_opacity(*LLUI::getInstance()->mSettingGroups["config"], "ConsoleBackgroundOpacity", 0.7f); F32 console_opacity = llclamp(console_bg_opacity(), 0.f, 1.f); - LLColor4 color = LLUIColorTable::instance().getColor("ConsoleBackground"); + static LLColor4 color = LLUIColorTable::instance().getColor("ConsoleBackground"); color.mV[VALPHA] *= console_opacity; F32 line_height = (F32)mFont->getLineHeight(); |
