If an extension is prefixed with '+', attempt to enable it. This
introduces symmetry with the prefix '-', which is already allowed.
*
* \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.
for (ext = strtok(env, " "); ext != NULL; ext = strtok(NULL, " ")) {
int enable;
switch (ext[0]) {
+ case '+':
+ enable = 1;
+ ++ext;
+ break;
case '-':
enable = 0;
++ext;