From: Michal Krol Date: Fri, 4 Sep 2009 08:49:12 +0000 (+0200) Subject: glsl: Handle pragma tokens in apps/process. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94321b44416f47eb08bf72c93f4299ff7dc47017;p=mesa.git glsl: Handle pragma tokens in apps/process. --- 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); }