summaryrefslogtreecommitdiffstats
path: root/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2022-06-15 13:03:33 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2022-06-16 10:49:42 +0200
commit4563961362c14aceb47a9a416626d54cec10cd5d (patch)
treecbcd161b6f1265ba4280dbb1fce53417ae56700e /src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h
parent6d11ee1b0511e9985f1b88a6aa660f1bc0fe2e09 (diff)
Increase glyph cache cap to 4 textures
Since the glyph cache in Qt 3D Studio does not implement glyph recycling, we need a little bit extra room to make sure we can accommodate large character sets. Change-Id: I80a98acc987ed1fc1b657fe199250454bc7f261d Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Diffstat (limited to 'src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h')
-rw-r--r--src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h b/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h
index 2eca726..1c550cc 100644
--- a/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h
+++ b/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h
@@ -90,7 +90,7 @@ private:
QSGAreaAllocator *m_areaAllocator = nullptr;
int m_maxTextureWidth = 0;
int m_maxTextureHeight = 0;
- int m_maxTextureCount = 3;
+ int m_maxTextureCount = 4;
mutable QVector<TextureInfo> m_textures;
QHash<glyph_t, TextureInfo *> m_glyphsTexture;