Skip to content
Myr

application: reset shaped_bold to NULL on text run flush

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This ensures we don't try to re-use a now free:d text-run, when rendering the next frame. (when the text run is NULL, the rendered will re-create it, which is exactly what we want to achieve when flushing the cache)

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 229a5d5 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:application.c+1 added
399 unmodified lines
400 for (size_t i = 0; i < apps->count; i++) {401 fcft_text_run_destroy(apps->v[i]->shaped);402 fcft_text_run_destroy(apps->v[i]->shaped_bold);403 apps->v[i]->shaped = NULL;404 apps->v[i]->shaped_bold = NULL;405 }406}