Commit ab4be84f by Geoff Lang

Add newlines when writing original shader source to shader debug output.

Previously, the entire original shader would end up being written to a single line, not very readable. Change-Id: I8cdfd498bb47395da2bd11c3d3b2eecf266c914e Reviewed-on: https://chromium-review.googlesource.com/576064Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 282847e9
...@@ -347,7 +347,7 @@ void Shader::resolveCompile(const Context *context) ...@@ -347,7 +347,7 @@ void Shader::resolveCompile(const Context *context)
// Remove null characters from the source line // Remove null characters from the source line
line.erase(std::remove(line.begin(), line.end(), '\0'), line.end()); line.erase(std::remove(line.begin(), line.end(), '\0'), line.end());
shaderStream << "// " << line; shaderStream << "// " << line << std::endl;
} }
shaderStream << "\n\n"; shaderStream << "\n\n";
shaderStream << mState.mTranslatedSource; shaderStream << mState.mTranslatedSource;
......
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