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
if (errorMessage)
{
const char *message = (const char*)errorMessage->GetBufferPointer();
trace(hlsl);
trace(message);
TRACE("\n%s", hlsl);
TRACE("\n%s", message);
}
return NULL;
......
......@@ -140,7 +140,7 @@ void Shader::compileToHLSL(void *compiler)
return;
}
trace(mSource);
TRACE("\n%s", mSource);
delete[] mErrors;
mErrors = NULL;
......@@ -165,14 +165,14 @@ void Shader::compileToHLSL(void *compiler)
mHlsl = new char[strlen(obj) + 1];
strcpy(mHlsl, obj);
trace(mHlsl);
TRACE("\n%s", mHlsl);
}
else
{
mErrors = new char[strlen(info) + 1];
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