mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-19 05:33:44 -04:00
term: initialize rendering worker threads after instantiating fonts
This ensures the resources (e.g. stack) used by the transient threads used to load the primary fonts can be re-used by the rendering worker threads.
This commit is contained in:
parent
74d30dc410
commit
84e945a851
1 changed files with 2 additions and 3 deletions
|
|
@ -858,9 +858,6 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
|
||||||
}
|
}
|
||||||
|
|
||||||
initialize_color_cube(term);
|
initialize_color_cube(term);
|
||||||
if (!initialize_render_workers(term))
|
|
||||||
goto err;
|
|
||||||
|
|
||||||
/* Initialize the Wayland window backend */
|
/* Initialize the Wayland window backend */
|
||||||
if ((term->window = wayl_win_init(term)) == NULL)
|
if ((term->window = wayl_win_init(term)) == NULL)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
@ -897,6 +894,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!initialize_render_workers(term))
|
||||||
|
goto err;
|
||||||
|
|
||||||
return term;
|
return term;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue