glsl: Handle pragma tokens in apps/process.
authorMichal Krol <michal@vmware.com>
Fri, 4 Sep 2009 08:49:12 +0000 (10:49 +0200)
committerMichal Krol <michal@vmware.com>
Mon, 7 Sep 2009 08:11:59 +0000 (10:11 +0200)
src/glsl/apps/process.c

index d01294f34079e044bb4e4c874246a9261962721e..9a450ce5a7b4dc48f33cad5c1049a5773ff8de92 100644 (file)
@@ -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);
       }