mesa: added some debug code (disabled)

This commit is contained in:
Brian Paul 2008-07-02 16:50:52 -06:00
parent 36a5826411
commit cb79c5c7c6
2 changed files with 9 additions and 0 deletions

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);

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;
}