To output debug info use the TRACE macro instead of calling trace()

Trac #11526 Signed-off-by: Shannon Woods Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@61 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent b5b06160
...@@ -385,8 +385,8 @@ ID3DXBuffer *Program::compileToBinary(const char *hlsl, const char *profile, ID3 ...@@ -385,8 +385,8 @@ ID3DXBuffer *Program::compileToBinary(const char *hlsl, const char *profile, ID3
if (errorMessage) if (errorMessage)
{ {
const char *message = (const char*)errorMessage->GetBufferPointer(); const char *message = (const char*)errorMessage->GetBufferPointer();
trace(hlsl); TRACE("\n%s", hlsl);
trace(message); TRACE("\n%s", message);
} }
return NULL; return NULL;
......
...@@ -140,7 +140,7 @@ void Shader::compileToHLSL(void *compiler) ...@@ -140,7 +140,7 @@ void Shader::compileToHLSL(void *compiler)
return; return;
} }
trace(mSource); TRACE("\n%s", mSource);
delete[] mErrors; delete[] mErrors;
mErrors = NULL; mErrors = NULL;
...@@ -165,14 +165,14 @@ void Shader::compileToHLSL(void *compiler) ...@@ -165,14 +165,14 @@ void Shader::compileToHLSL(void *compiler)
mHlsl = new char[strlen(obj) + 1]; mHlsl = new char[strlen(obj) + 1];
strcpy(mHlsl, obj); strcpy(mHlsl, obj);
trace(mHlsl); TRACE("\n%s", mHlsl);
} }
else else
{ {
mErrors = new char[strlen(info) + 1]; mErrors = new char[strlen(info) + 1];
strcpy(mErrors, info); strcpy(mErrors, info);
trace(mErrors); TRACE("\n%s", mErrors);
} }
} }
......
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