summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_process.c
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-09-04 11:32:46 +0200
committerMichal Krol <[email protected]>2009-09-07 10:12:00 +0200
commit87d2de04fbb7d9ea8eae9c58f7c7fb842ffe06f6 (patch)
tree7b705dd03e7828dd394c416be6035948084bc54b /src/glsl/pp/sl_pp_process.c
parent94321b44416f47eb08bf72c93f4299ff7dc47017 (diff)
glsl: Implement `extension' preprocessor directive.
No extensions supported.
Diffstat (limited to 'src/glsl/pp/sl_pp_process.c')
-rw-r--r--src/glsl/pp/sl_pp_process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_process.c b/src/glsl/pp/sl_pp_process.c
index 62b73426c5f..be01f9139c1 100644
--- a/src/glsl/pp/sl_pp_process.c
+++ b/src/glsl/pp/sl_pp_process.c
@@ -154,6 +154,10 @@ sl_pp_process(struct sl_pp_context *context,
} else if (!strcmp(name, "error")) {
sl_pp_process_error(context, input, first, last);
return -1;
+ } else if (!strcmp(name, "extension")) {
+ if (sl_pp_process_extension(context, input, first, last, &state)) {
+ return -1;
+ }
} else if (!strcmp(name, "pragma")) {
if (sl_pp_process_pragma(context, input, first, last, &state)) {
return -1;