diff options
Diffstat (limited to 'src/Platform/OpenGL/OpenGLShader.cpp')
| -rw-r--r-- | src/Platform/OpenGL/OpenGLShader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Platform/OpenGL/OpenGLShader.cpp b/src/Platform/OpenGL/OpenGLShader.cpp index bb75f3d..39e95b7 100644 --- a/src/Platform/OpenGL/OpenGLShader.cpp +++ b/src/Platform/OpenGL/OpenGLShader.cpp @@ -65,7 +65,8 @@ namespace Donut const char* typeToken = "#type"; size_t typeTokenLength = strlen(typeToken); size_t pos = source.find(typeToken, 0); - while (pos != std::string::npos) { + while (pos != std::string::npos) + { size_t eol = source.find_first_of("\r\n", pos); size_t begin = pos + typeTokenLength + 1; std::string type = source.substr(begin, eol - begin); |
