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:
Geoff Lang committed 2017-07-18 17:33:30 +00:00
1 parent 282847e99b
commit ab4be84fb6
1 file changed
+1 -1
+1 -1
View File
@@ -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;