From: Brian Paul Date: Mon, 8 Jun 2009 16:58:04 +0000 (-0600) Subject: glsl: preprocessor debug code (disabled) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=854151ba62e4b1cb6a755f6c131ee2e0f680f39b;p=mesa.git glsl: preprocessor debug code (disabled) --- diff --git a/src/mesa/shader/slang/slang_preprocess.c b/src/mesa/shader/slang/slang_preprocess.c index ff913ad8838..c3df76ded54 100644 --- a/src/mesa/shader/slang/slang_preprocess.c +++ b/src/mesa/shader/slang/slang_preprocess.c @@ -1319,6 +1319,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; }