From: Emil Velikov Date: Mon, 6 Nov 2017 17:58:08 +0000 (+0000) Subject: mesa: pass the ctx to _mesa_one_time_init_extension_overrides X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=693682bd015e871f7beca15aeb441c2e1ba76cec;p=mesa.git mesa: pass the ctx to _mesa_one_time_init_extension_overrides Will be needed with next commit Signed-off-by: Emil Velikov Reviewed-by: Brian Paul --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 762765c9c97..25dd59ae2c1 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -390,7 +390,7 @@ one_time_init( struct gl_context *ctx ) _mesa_locale_init(); - _mesa_one_time_init_extension_overrides(); + _mesa_one_time_init_extension_overrides(ctx); _mesa_get_cpu_features(); diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index be3970c6393..fbfa0447658 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -237,7 +237,7 @@ free_unknown_extensions_strings(void) * - Collect unrecognized extension names in a new string. */ void -_mesa_one_time_init_extension_overrides(void) +_mesa_one_time_init_extension_overrides(struct gl_context *ctx) { const char *env_const = getenv("MESA_EXTENSION_OVERRIDE"); char *env; diff --git a/src/mesa/main/extensions.h b/src/mesa/main/extensions.h index ebed8fa4fc0..59761bfcdb4 100644 --- a/src/mesa/main/extensions.h +++ b/src/mesa/main/extensions.h @@ -47,7 +47,7 @@ struct gl_extensions; extern void _mesa_enable_sw_extensions(struct gl_context *ctx); -extern void _mesa_one_time_init_extension_overrides(void); +extern void _mesa_one_time_init_extension_overrides(struct gl_context *ctx); extern void _mesa_init_extensions(struct gl_extensions *extentions);