glsl/pp: fix incorrect extension enable flag for warn mode

This commit is contained in:
Brian Paul
2010-02-13 13:48:32 -07:00
parent 744994a9c6
commit 3b53b7e8b0
+1 -1
View 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. */