mesa: added some debug code (disabled)

cherry-picked from master
This commit is contained in:
Brian Paul
2008-07-02 17:08:28 -06:00
parent 088c42c5c3
commit 40739d4ae9
2 changed files with 9 additions and 0 deletions
+6
View 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);
+3
View 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;
}