diff options
author | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2025-02-25 09:45:04 -0500 |
---|---|---|
committer | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2025-02-25 09:45:04 -0500 |
commit | 42e219fb0433e92b51dfbc8daad06044f41fa4c4 (patch) | |
tree | 3eb0003a77226320cc2394b3db3ebabb981c5609 /indra/llrender/llfontgl.cpp | |
parent | 1754aea5ff8f8a78f5a25e6652692eee7df4ff23 (diff) | |
parent | ca079bc14911ddca631167e078deab6d35224f23 (diff) |
Merge branch 'release/2024.12-ForeverFPS' into release/2025.03
Diffstat (limited to 'indra/llrender/llfontgl.cpp')
-rw-r--r-- | indra/llrender/llfontgl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp index 4037c036e5..16eec1fdd2 100644 --- a/indra/llrender/llfontgl.cpp +++ b/indra/llrender/llfontgl.cpp @@ -110,9 +110,10 @@ S32 LLFontGL::getNumFaces(const std::string& filename) return mFontFreetype->getNumFaces(filename); } -S32 LLFontGL::getKnownGlyphCount() const +S32 LLFontGL::getCacheGeneration() const { - return mFontFreetype ? mFontFreetype->getAddedGlyphs() : 0; + const LLFontBitmapCache* font_bitmap_cache = mFontFreetype->getFontBitmapCache(); + return font_bitmap_cache->getCacheGeneration(); } S32 LLFontGL::render(const LLWString &wstr, S32 begin_offset, const LLRect& rect, const LLColor4 &color, HAlign halign, VAlign valign, U8 style, |