summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_if.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-02-10 10:49:48 -0700
committerBrian Paul <[email protected]>2010-02-10 10:49:50 -0700
commit3251f31d593129e772475f2219771c660c53bf4e (patch)
tree65aa072a7ffecdf6e487f5b2377e772efc12450a /src/glsl/pp/sl_pp_if.c
parent8b1c332a77555b94f5665517e5fdcb416e1a67b7 (diff)
glsl/pp: fix extension enable/disable options
Now the #extension name: disable/enable flags do the right thing. Fixes glean/glsl1 "Preprocessor test (extension test 3)"
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 3ddbcc84af8..272c3a23cce 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 1;
+ return context->extensions[i].enabled;
}
}