From de5928a61549a6ca66e6b9ff6e50b305f653888c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 16 Feb 2010 10:42:05 -0700 Subject: sl/pp: re-do extension testing code The #extension directive should not effect which extension preprocessor symbols are defined/undefined; only whether/how the compiler accepts language features defined by the extension. --- src/glsl/pp/sl_pp_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glsl/pp/sl_pp_if.c') diff --git a/src/glsl/pp/sl_pp_if.c b/src/glsl/pp/sl_pp_if.c index e233999ca8..25cb7a3ca1 100644 --- a/src/glsl/pp/sl_pp_if.c +++ b/src/glsl/pp/sl_pp_if.c @@ -40,7 +40,7 @@ _macro_is_defined(struct sl_pp_context *context, for (i = 0; i < context->num_extensions; i++) { if (macro_name == context->extensions[i].name) { - return context->extensions[i].enabled; + return 1; } } -- cgit v1.2.3