diff options
author | Michal Krol <[email protected]> | 2009-09-04 10:49:12 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-07 10:11:59 +0200 |
commit | 94321b44416f47eb08bf72c93f4299ff7dc47017 (patch) | |
tree | cf5f08c62b578b06ded52b7e910be0bc569992c6 | |
parent | 0e046420e468bcb81301aa5a5e4de736a8b4844a (diff) |
glsl: Handle pragma tokens in apps/process.
-rw-r--r-- | src/glsl/apps/process.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/apps/process.c b/src/glsl/apps/process.c index d01294f3407..9a450ce5a7b 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); } |