[ot-layout] Always swap_buffers() even if no substitutions happened

This commit is contained in:
Behdad Esfahbod 2021-07-12 17:00:46 -06:00
parent 62b441e6ff
commit a7f4c985a8
1 changed files with 5 additions and 9 deletions

View File

@ -1890,16 +1890,12 @@ apply_string (OT::hb_ot_apply_context_t *c,
buffer->clear_output (); buffer->clear_output ();
buffer->idx = 0; buffer->idx = 0;
apply_forward (c, accel);
bool ret; if (!Proxy::inplace)
ret = apply_forward (c, accel); buffer->swap_buffers ();
if (ret) else
{ assert (!buffer->has_separate_output ());
if (!Proxy::inplace)
buffer->swap_buffers ();
else
assert (!buffer->has_separate_output ());
}
} }
else else
{ {