summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-09-04 11:33:15 +0200
committerMichal Krol <[email protected]>2009-09-07 10:12:02 +0200
commit7f187583c14448047c95d933a96b190273a881e5 (patch)
treed793f8e2f7b2276a1d950d31a84eeb4f3f566de1
parent87d2de04fbb7d9ea8eae9c58f7c7fb842ffe06f6 (diff)
glsl: Handle extension tokens in apps/proces.
-rw-r--r--src/glsl/apps/process.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/glsl/apps/process.c b/src/glsl/apps/process.c
index 9a450ce5a7b..b40ad442bbb 100644
--- a/src/glsl/apps/process.c
+++ b/src/glsl/apps/process.c
@@ -328,6 +328,22 @@ main(int argc,
fprintf(out, "#pragma debug(%s)", outtokens[i].data.pragma ? "on" : "off");
break;
+ case SL_PP_EXTENSION_REQUIRE:
+ fprintf(out, "#extension %s : require", sl_pp_context_cstr(&context, outtokens[i].data.extension));
+ break;
+
+ case SL_PP_EXTENSION_ENABLE:
+ fprintf(out, "#extension %s : enable", sl_pp_context_cstr(&context, outtokens[i].data.extension));
+ break;
+
+ case SL_PP_EXTENSION_WARN:
+ fprintf(out, "#extension %s : warn", sl_pp_context_cstr(&context, outtokens[i].data.extension));
+ break;
+
+ case SL_PP_EXTENSION_DISABLE:
+ fprintf(out, "#extension %s : disable", sl_pp_context_cstr(&context, outtokens[i].data.extension));
+ break;
+
default:
assert(0);
}