summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-04 11:33:15 +0200
committerMichal Krol <michal@vmware.com>2009-09-04 11:33:15 +0200
commit5a4f785849cb401c11010dee2f64a55126377b5f (patch)
treef75847752bbd3eecc81bd04cd1099bae63b5684f
parentc4d5e7b49b9f45996bd2c4ceaa48adeeb47b418b (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 9a450ce5a7..b40ad442bb 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);
}