summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-06-10 12:24:11 -0600
committerBrian Paul <brianp@vmware.com>2009-06-17 11:30:03 -0600
commit9ead7677b3a5146b9e1de9f60fd71475ffbebc50 (patch)
treead2dbce55d28fc3188e0efb49a65ddf09924e1b8 /src
parent1212f5120cfe06bc0ee5c36207c1f91e429c0269 (diff)
glsl: preprocessor debug code (disabled)
(cherry picked from master, commit 854151ba62e4b1cb6a755f6c131ee2e0f680f39b)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_preprocess.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_preprocess.c b/src/mesa/shader/slang/slang_preprocess.c
index cd79c8b94a6..60b2d82606a 100644
--- a/src/mesa/shader/slang/slang_preprocess.c
+++ b/src/mesa/shader/slang/slang_preprocess.c
@@ -1323,6 +1323,11 @@ _slang_preprocess_directives(slang_string *output,
success = preprocess_source (output, input, pid, eid, elog, extensions, pragmas);
grammar_destroy (eid);
grammar_destroy (pid);
+ if (0) {
+ _mesa_printf("Post-processed shader:\n");
+ _mesa_printf("%s", output->data);
+ _mesa_printf("----------------------\n");
+ }
return success;
}