Commit b33e1cea authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Properly print compilation messages.

parent b4a31d0a
...@@ -359,7 +359,7 @@ static HRESULT preprocess_shader(const void *data, SIZE_T data_size, ...@@ -359,7 +359,7 @@ static HRESULT preprocess_shader(const void *data, SIZE_T data_size,
int size; int size;
ID3DBlob *buffer; ID3DBlob *buffer;
TRACE("Preprocessor messages:\n%s", debugstr_a(wpp_messages)); TRACE("Preprocessor messages:\n%s\n", debugstr_a(wpp_messages));
if (error_messages) if (error_messages)
{ {
...@@ -405,7 +405,7 @@ static HRESULT assemble_shader(const char *preproc_shader, ...@@ -405,7 +405,7 @@ static HRESULT assemble_shader(const char *preproc_shader,
if (messages) if (messages)
{ {
TRACE("Assembler messages:\n"); TRACE("Assembler messages:\n");
TRACE("%s", messages); TRACE("%s\n", debugstr_a(messages));
TRACE("Shader source:\n"); TRACE("Shader source:\n");
TRACE("%s\n", debugstr_a(preproc_shader)); TRACE("%s\n", debugstr_a(preproc_shader));
...@@ -537,7 +537,7 @@ static HRESULT compile_shader(const char *preproc_shader, const char *target, co ...@@ -537,7 +537,7 @@ static HRESULT compile_shader(const char *preproc_shader, const char *target, co
if (messages) if (messages)
{ {
TRACE("Compiler messages:\n"); TRACE("Compiler messages:\n");
TRACE("%s", messages); TRACE("%s\n", debugstr_a(messages));
TRACE("Shader source:\n"); TRACE("Shader source:\n");
TRACE("%s\n", debugstr_a(preproc_shader)); TRACE("%s\n", debugstr_a(preproc_shader));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment