diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-09-14 22:58:10 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-09-15 19:08:27 +0300 |
| commit | ff75ab037607d8fe305f43f8b1f43126693ba2db (patch) | |
| tree | b02c7c0e6b59bbf14c43979d339a9272f2d8bdcd /indra/llrender | |
| parent | 509deb7996ad8aef91f51b97cbd74c92c8faa800 (diff) | |
#2559 Fix emojis breaking tooltips
Diffstat (limited to 'indra/llrender')
| -rw-r--r-- | indra/llrender/llfontgl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp index 89da15ed43..5082cf9453 100644 --- a/indra/llrender/llfontgl.cpp +++ b/indra/llrender/llfontgl.cpp @@ -424,6 +424,8 @@ S32 LLFontGL::render(const LLWString &wstr, S32 begin_offset, F32 x, F32 y, cons F32 descender = (F32)llfloor(mFontFreetype->getDescenderHeight()); gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); + // specify color, otherwise it will use last one (Ex: white for emojis) + gGL.color4ubv(text_color.mV); gGL.begin(LLRender::LINES); gGL.vertex2f(start_x, cur_y - descender); gGL.vertex2f(cur_x, cur_y - descender); |
