glsl/pp: fix incorrect extension enable flag for warn mode
authorBrian Paul <brianp@vmware.com>
Sat, 13 Feb 2010 20:48:32 +0000 (13:48 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 13 Feb 2010 20:48:32 +0000 (13:48 -0700)
src/glsl/pp/sl_pp_extension.c

index 777e42d0fc97fb6ded96ed4818c6827684831ed3..2b6cf3c7e429c8529fc82d8d0735fbd6f3410318 100644 (file)
@@ -155,7 +155,7 @@ sl_pp_process_extension(struct sl_pp_context *context,
          return 0;
       }
       out.token = SL_PP_EXTENSION_WARN;
-      extension->enabled = 0;
+      extension->enabled = 1;
    } else if (behavior == context->dict.disable) {
       if (out.data.extension == -1) {
          /* Warning: the extension is not supported. */