mesa: added some debug code (disabled)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 2 Jul 2008 22:50:52 +0000 (16:50 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 2 Jul 2008 22:50:52 +0000 (16:50 -0600)
src/mesa/shader/slang/slang_compile.c
src/mesa/shader/slang/slang_log.c

index cdea1c5128771435f1e9d9cf0c62b274314c3364..4cda7124c050d0e380fda74d461720a7c8ce5e60 100644 (file)
@@ -2129,6 +2129,12 @@ compile_shader(GLcontext *ctx, slang_code_object * object,
    GLboolean success;
    grammar id = 0;
 
+#if 0 /* for debug */
+   _mesa_printf("********* COMPILE SHADER ***********\n");
+   _mesa_printf("%s\n", shader->Source);
+   _mesa_printf("************************************\n");
+#endif
+
    assert(program);
 
    _slang_code_object_dtr(object);
index e9234bafec76c92b832c4e4bc236a38191240013..c963914fe3caf74736c8645ae749c0683ce68594 100644 (file)
@@ -86,6 +86,9 @@ slang_info_log_message(slang_info_log * log, const char *prefix,
    }
    slang_string_concat(log->text, msg);
    slang_string_concat(log->text, "\n");
+#if 0 /* debug */
+   _mesa_printf("Mesa GLSL error/warning: %s\n", log->text);
+#endif
    return 1;
 }