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
diff --git a/src/libGLESv2/Shader.cpp b/src/libGLESv2/Shader.cpp
index 2b308ae..d88c872 100644
--- a/src/libGLESv2/Shader.cpp
+++ b/src/libGLESv2/Shader.cpp
@@ -140,7 +140,7 @@
return;
}
- trace(mSource);
+ TRACE("\n%s", mSource);
delete[] mErrors;
mErrors = NULL;
@@ -165,14 +165,14 @@
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);
}
}