Fix TextLayout Cache not invalidating during Engine destroy (this generated crashes in the unit-tests).

This commit is contained in:
Martín Lucas Golini
2026-03-28 14:13:54 -03:00
parent f9023edcbe
commit 18bb2dcc37
3 changed files with 17 additions and 3 deletions

View File

@@ -48,6 +48,7 @@ class EE_API TextLayout {
LineWrapMode lineWrapMode = LineWrapMode::NoWrap, Uint32 wrapWidth = 0,
bool keepIndentation = false, Float initialXOffset = 0 );
static void clearLayoutCache();
protected:
static void wrapLayout( const String::View& string, TextLayout&, LineWrapMode lineWrapMode,
Float wrapWidth, Float vspace, bool keepIndentation, Font* font,