summaryrefslogtreecommitdiff
path: root/modules/text_server_adv
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-12-10 17:07:42 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-12-10 17:07:42 +0200
commit3395539ed457618f55321f78472357010903b588 (patch)
tree5c0d4edc77283483dda8552342cb447b81676ba4 /modules/text_server_adv
parent0c1273629df7941a909716454408ebffb791c1a0 (diff)
[TextServer] Do not clean up font texture cache when setting `allow_system_fallback` property.
Diffstat (limited to 'modules/text_server_adv')
-rw-r--r--modules/text_server_adv/text_server_adv.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/text_server_adv/text_server_adv.cpp b/modules/text_server_adv/text_server_adv.cpp
index 27fab88956..cf77d0ed7f 100644
--- a/modules/text_server_adv/text_server_adv.cpp
+++ b/modules/text_server_adv/text_server_adv.cpp
@@ -2151,10 +2151,7 @@ void TextServerAdvanced::_font_set_allow_system_fallback(const RID &p_font_rid,
ERR_FAIL_COND(!fd);
MutexLock lock(fd->mutex);
- if (fd->allow_system_fallback != p_allow_system_fallback) {
- _font_clear_cache(fd);
- fd->allow_system_fallback = p_allow_system_fallback;
- }
+ fd->allow_system_fallback = p_allow_system_fallback;
}
bool TextServerAdvanced::_font_is_allow_system_fallback(const RID &p_font_rid) const {