mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 22:13:25 -10:00
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/576064 Reviewed-by: Corentin Wallez <[email protected]>
This commit is contained in:
1 parent
282847e99b
commit
ab4be84fb6
1 file changed
+1
-1
@@ -347,7 +347,7 @@ void Shader::resolveCompile(const Context *context)
|
||||
// Remove null characters from the source line
|
||||
line.erase(std::remove(line.begin(), line.end(), '\0'), line.end());
|
||||
|
||||
shaderStream << "// " << line;
|
||||
shaderStream << "// " << line << std::endl;
|
||||
}
|
||||
shaderStream << "\n\n";
|
||||
shaderStream << mState.mTranslatedSource;
|
||||
|
||||
Reference in new issue
Block a user