diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-06-13 10:33:36 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-06-13 10:33:36 +0300 |
commit | b667469bbfcbd1f16e28dc757b552a7a149c728e (patch) | |
tree | 178a346838d018f1a2ac66daac0557461b561ee9 /modules | |
parent | 803d25a20a80de6e3532c6f85a6b54c22c19c305 (diff) |
[TextServer] Add missing font mutex lock.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/text_server_adv/text_server_adv.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/text_server_adv/text_server_adv.cpp b/modules/text_server_adv/text_server_adv.cpp index d18ed97def..3573e200e8 100644 --- a/modules/text_server_adv/text_server_adv.cpp +++ b/modules/text_server_adv/text_server_adv.cpp @@ -4780,6 +4780,9 @@ void TextServerAdvanced::_shape_run(ShapedTextDataAdvanced *p_sd, int64_t p_star RID f = p_fonts[p_fb_index]; FontDataAdvanced *fd = font_owner.get_or_null(f); + ERR_FAIL_COND(!fd); + MutexLock lock(fd->mutex); + Vector2i fss = _get_size(fd, fs); hb_font_t *hb_font = _font_get_hb_handle(f, fs); double scale = font_get_scale(f, fs); |