summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-04 10:49:12 +0200
committerMichal Krol <michal@vmware.com>2009-09-04 10:49:12 +0200
commit6c6b680aca891e91eadd6523c0adacf594d8e55b (patch)
treed433a47cbc9b828c245c9de3367533641da8011f
parent5dcda0dc6e01be31b0cc587de9bf1653eb470987 (diff)
glsl: Handle pragma tokens in apps/process.
-rw-r--r--src/glsl/apps/process.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/apps/process.c b/src/glsl/apps/process.c
index d01294f340..9a450ce5a7 100644
--- a/src/glsl/apps/process.c
+++ b/src/glsl/apps/process.c
@@ -320,6 +320,14 @@ main(int argc,
fprintf(out, "%c", outtokens[i].data.other);
break;
+ case SL_PP_PRAGMA_OPTIMIZE:
+ fprintf(out, "#pragma optimize(%s)", outtokens[i].data.pragma ? "on" : "off");
+ break;
+
+ case SL_PP_PRAGMA_DEBUG:
+ fprintf(out, "#pragma debug(%s)", outtokens[i].data.pragma ? "on" : "off");
+ break;
+
default:
assert(0);
}