From: Erik Faye-Lund Date: Fri, 24 Apr 2020 13:41:49 +0000 (+0200) Subject: mesa/st: call _mesa_initialize() early X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1e453f504addc6c1c8b270803c85db394356770;p=mesa.git mesa/st: call _mesa_initialize() early This allows drivers to reliably do things like using the GLSL type-system during initialization. Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 67cc46a0c54..ae600737cc6 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -894,6 +894,8 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi, return NULL; } + _mesa_initialize(); + /* Create a hash table for the framebuffer interface objects * if it has not been created for this st manager. */