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

index 9a450ce5a7b4dc48f33cad5c1049a5773ff8de92..b40ad442bbb02e25573907b464c855c790068fc4 100644 (file)
@@ -328,6 +328,22 @@ main(int argc,
          fprintf(out, "#pragma debug(%s)", outtokens[i].data.pragma ? "on" : "off");
          break;
 
+      case SL_PP_EXTENSION_REQUIRE:
+         fprintf(out, "#extension %s : require", sl_pp_context_cstr(&context, outtokens[i].data.extension));
+         break;
+
+      case SL_PP_EXTENSION_ENABLE:
+         fprintf(out, "#extension %s : enable", sl_pp_context_cstr(&context, outtokens[i].data.extension));
+         break;
+
+      case SL_PP_EXTENSION_WARN:
+         fprintf(out, "#extension %s : warn", sl_pp_context_cstr(&context, outtokens[i].data.extension));
+         break;
+
+      case SL_PP_EXTENSION_DISABLE:
+         fprintf(out, "#extension %s : disable", sl_pp_context_cstr(&context, outtokens[i].data.extension));
+         break;
+
       default:
          assert(0);
       }