Merge pull request #34241 from timothyqiu/sync-fallbacks-size-32701
Fixes crash when using DynamicFont::set_font_data
This commit is contained in:
commit
ea865d0e7e
|
@ -657,6 +657,7 @@ void DynamicFont::_reload_cache() {
|
||||||
if (!data.is_valid()) {
|
if (!data.is_valid()) {
|
||||||
data_at_size.unref();
|
data_at_size.unref();
|
||||||
outline_data_at_size.unref();
|
outline_data_at_size.unref();
|
||||||
|
fallbacks.resize(0);
|
||||||
fallback_data_at_size.resize(0);
|
fallback_data_at_size.resize(0);
|
||||||
fallback_outline_data_at_size.resize(0);
|
fallback_outline_data_at_size.resize(0);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue