glsl: Handle line tokens in apps/process.
authorMichal Krol <michal@vmware.com>
Fri, 4 Sep 2009 13:16:42 +0000 (15:16 +0200)
committerMichal Krol <michal@vmware.com>
Mon, 7 Sep 2009 08:12:08 +0000 (10:12 +0200)
src/glsl/apps/process.c

index b40ad442bbb02e25573907b464c855c790068fc4..ca96d62f784924e7facd24d1f94f140150785e13 100644 (file)
@@ -344,6 +344,10 @@ main(int argc,
          fprintf(out, "#extension %s : disable", sl_pp_context_cstr(&context, outtokens[i].data.extension));
          break;
 
+      case SL_PP_LINE:
+         fprintf(out, "#line %u", outtokens[i].data.line);
+         break;
+
       default:
          assert(0);
       }