summaryrefslogtreecommitdiff
path: root/src/glsl/pp/sl_pp_if.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-02-16 10:42:05 -0700
committerBrian Paul <brianp@vmware.com>2010-02-16 10:43:36 -0700
commitde5928a61549a6ca66e6b9ff6e50b305f653888c (patch)
tree7eec9b42a9420533b632cd2f39dc5fdafbcb0011 /src/glsl/pp/sl_pp_if.c
parentf7aea808a4724a9e50bf3afa5a1bf547d0da5d65 (diff)
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.
Diffstat (limited to 'src/glsl/pp/sl_pp_if.c')
-rw-r--r--src/glsl/pp/sl_pp_if.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}