Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
index f516c0de10c4a3346599dfedc00c53128916a293..601d634f50f621597b6dd818fab22fc6a2ceae95 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
@@ -5482,10 +5482,6 @@ bool WebGLRenderingContextBase::validateShaderSource(const String& string) |
for (size_t i = 0; i < string.length(); ++i) { |
// line-continuation character \ is supported in WebGL 2.0. |
if (isWebGL2OrHigher() && string[i] == '\\') { |
- if (i + 1 >= string.length() || (string[i + 1] != '\n' && string[i + 1] != '\r')) { |
- synthesizeGLError(GL_INVALID_VALUE, "shaderSource", "line-continuation character is not immediately preceding a new-line"); |
- return false; |
- } |
continue; |
} |
if (!validateCharacter(string[i])) { |