mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
mesa: added some debug code (disabled)
This commit is contained in:
parent
36a5826411
commit
cb79c5c7c6
2 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue