summaryrefslogtreecommitdiff
path: root/indra/llui/llconsole.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-09-18 16:57:57 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-09-18 17:27:12 +0300
commit0d7f6d917af2e0b19a32a925ded6fab4b1a6725e (patch)
treebf99cbd68261b3b4c61b1f3d042044eb76db6fa2 /indra/llui/llconsole.cpp
parenta5c8b1cbe20c2ccd609f550ff4983741f622fc27 (diff)
SL-13729 Performance of LLUI and LLRender2D #3
Diffstat (limited to 'indra/llui/llconsole.cpp')
-rw-r--r--indra/llui/llconsole.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/llconsole.cpp b/indra/llui/llconsole.cpp
index de09fdbafd..8fc2978bdd 100644
--- a/indra/llui/llconsole.cpp
+++ b/indra/llui/llconsole.cpp
@@ -181,7 +181,7 @@ void LLConsole::draw()
LLUIImagePtr imagep = LLUI::getUIImage("transparent");
static LLCachedControl<F32> console_bg_opacity(*LLUI::getInstance()->mSettingGroups["config"], "ConsoleBackgroundOpacity", 0.7f);
- F32 console_opacity = llclamp((F32)console_bg_opacity, 0.f, 1.f);
+ F32 console_opacity = llclamp(console_bg_opacity(), 0.f, 1.f);
LLColor4 color = LLUIColorTable::instance().getColor("ConsoleBackground");
color.mV[VALPHA] *= console_opacity;