[ft] Move lock only around clip_glyph

This commit is contained in:
Behdad Esfahbod 2022-12-23 12:10:22 -07:00
parent 2762903909
commit 583f010b05
1 changed files with 1 additions and 1 deletions

View File

@ -848,9 +848,9 @@ hb_ft_paint_glyph (hb_font_t *font,
/* Simple outline. */ /* Simple outline. */
ft_font->lock.unlock (); ft_font->lock.unlock ();
paint_funcs->push_clip_glyph (paint_data, gid, font); paint_funcs->push_clip_glyph (paint_data, gid, font);
ft_font->lock.lock ();
paint_funcs->color (paint_data, true, foreground); paint_funcs->color (paint_data, true, foreground);
paint_funcs->pop_clip (paint_data); paint_funcs->pop_clip (paint_data);
ft_font->lock.lock ();
return; return;
} }