Mesa (glsl-pp-rework-1): glsl: Handle line tokens in apps/process.

Michał Król michal at kemper.freedesktop.org
Fri Sep 4 13:29:22 UTC 2009


Module: Mesa
Branch: glsl-pp-rework-1
Commit: ebd8bb7bfbc269ece78ccc2e3d366aea17b23dc6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ebd8bb7bfbc269ece78ccc2e3d366aea17b23dc6

Author: Michal Krol <michal at vmware.com>
Date:   Fri Sep  4 15:16:42 2009 +0200

glsl: Handle line tokens in apps/process.

---

 src/glsl/apps/process.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/glsl/apps/process.c b/src/glsl/apps/process.c
index b40ad44..ca96d62 100644
--- a/src/glsl/apps/process.c
+++ b/src/glsl/apps/process.c
@@ -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);
       }




More information about the mesa-commit mailing list