[shape] Only verify if text_buffer is successful

This commit is contained in:
Behdad Esfahbod 2022-05-31 07:52:04 -06:00
parent f7f61aeb6f
commit a441c6c16b
1 changed files with 3 additions and 2 deletions

View File

@ -146,8 +146,9 @@ hb_shape_full (hb_font_t *font,
if (text_buffer)
{
if (res && buffer->successful && !buffer->shaping_failed &&
!buffer->verify (text_buffer,
if (res && buffer->successful && !buffer->shaping_failed
&& text_buffer->successful
&& !buffer->verify (text_buffer,
font,
features,
num_features,