diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-02-11 22:57:53 +0200 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-02-11 23:59:42 +0200 |
| commit | e708d69fb09963c4829dc6cd095b3e174e268b60 (patch) | |
| tree | 697c6d7a7a25a1a592aa20ea663dd5c52660eb81 /indra/llrender/llfontvertexbuffer.h | |
| parent | d450295cf517784744552acb2e885a1657a60f7e (diff) | |
#3332 Fix buffers not accounting for dynamic cache values
And fix previous lapse of judgement with GLYPH_BATCH_SIZE
Diffstat (limited to 'indra/llrender/llfontvertexbuffer.h')
| -rw-r--r-- | indra/llrender/llfontvertexbuffer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llrender/llfontvertexbuffer.h b/indra/llrender/llfontvertexbuffer.h index f244e7fefa..d5e1280dbf 100644 --- a/indra/llrender/llfontvertexbuffer.h +++ b/indra/llrender/llfontvertexbuffer.h @@ -120,6 +120,10 @@ private: S32 mLastResGeneration = 0; LLCoordGL mLastOrigin; + // Adding new characters to bitmap cache can alter value from getBitmapWidth(); + // which alters whole string. So rerender when new characters were added to cache. + S32 mLastFontGlyphCount = 0; + static bool sEnableBufferCollection; }; |
