[Mesa-dev] [PATCH 11/13] mesa: pass the ctx to _mesa_one_time_init_extension_overrides
Emil Velikov
emil.l.velikov at gmail.com
Tue Nov 7 11:54:51 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
Will be needed with next commit
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/mesa/main/context.c | 2 +-
src/mesa/main/extensions.c | 2 +-
src/mesa/main/extensions.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 31aff0500f5..a21c7296bae 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 d16b05507ff..386877be635 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 2f49faa4757..e7c90c1780a 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);
--
2.14.1
More information about the mesa-dev
mailing list