diff options
| author | Richard Linden <none@none> | 2010-07-23 22:07:15 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2010-07-23 22:07:15 -0700 |
| commit | 6cc6f816780e64c5fb1e17a22fb5e473e75efe69 (patch) | |
| tree | 0fb764971547fc3e8e8fad3ec7a1856b77fb1ac9 /indra/llrender/llfontfreetype.cpp | |
| parent | 4d2daeed21dfba9d6a40e88ecd92aaaa6df92ae1 (diff) | |
first pass ui rendering performance improvements
Diffstat (limited to 'indra/llrender/llfontfreetype.cpp')
| -rw-r--r-- | indra/llrender/llfontfreetype.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llrender/llfontfreetype.cpp b/indra/llrender/llfontfreetype.cpp index a86bbbffff..0a16b5120a 100644 --- a/indra/llrender/llfontfreetype.cpp +++ b/indra/llrender/llfontfreetype.cpp @@ -259,10 +259,10 @@ F32 LLFontFreetype::getXAdvance(llwchar wch) const } else { - gi = get_if_there(mCharGlyphInfoMap, (llwchar)0, (LLFontGlyphInfo*)NULL); - if (gi) + char_glyph_info_map_t::iterator found_it = mCharGlyphInfoMap.find((llwchar)0); + if (found_it != mCharGlyphInfoMap.end()) { - return gi->mXAdvance; + return found_it->second->mXAdvance; } } |
