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:
Daniel Eklöf 2020-04-29 20:07:21 +02:00
parent 74d30dc410
commit 84e945a851
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -858,9 +858,6 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
}
initialize_color_cube(term);
if (!initialize_render_workers(term))
goto err;
/* Initialize the Wayland window backend */
if ((term->window = wayl_win_init(term)) == NULL)
goto err;
@ -897,6 +894,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
goto err;
}
if (!initialize_render_workers(term))
goto err;
return term;