diff options
author | Chad Versace <[email protected]> | 2011-01-27 01:40:47 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-01-26 16:37:45 -0800 |
commit | ad3dc370d86e3cfdb5e766bbf6dfbf247807044c (patch) | |
tree | 6edf09bb7c8b129487af52b381faf075db4687f3 /src/mesa/main/extensions.c | |
parent | 7cbcf4c583641544b677d601d35f8de64ff26710 (diff) |
mesa: Allow extensions in MESA_EXTENSION_OVERRIDE to be prefixed with '+'
If an extension is prefixed with '+', attempt to enable it. This
introduces symmetry with the prefix '-', which is already allowed.
Diffstat (limited to 'src/mesa/main/extensions.c')
-rw-r--r-- | src/mesa/main/extensions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index a7e98cd00f5..38227e5b9be 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -735,6 +735,7 @@ _mesa_extension_is_enabled( struct gl_context *ctx, const char *name ) * * \c MESA_EXTENSION_OVERRIDE is a space-separated list of extensions to * enable or disable. The list is processed thus: + * - Enable recognized extension names that are prefixed with '+'. * - Disable recognized extension names that are prefixed with '-'. * - Enable recognized extension names that are not prefixed. * - Collect unrecognized extension names in a new string. @@ -761,6 +762,10 @@ get_extension_override( struct gl_context *ctx ) for (ext = strtok(env, " "); ext != NULL; ext = strtok(NULL, " ")) { int enable; switch (ext[0]) { + case '+': + enable = 1; + ++ext; + break; case '-': enable = 0; ++ext; |