From 6aa6d9d3d01701dce2341f8ee48ea770803176d3 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 3 Jul 2015 01:35:26 -0400 Subject: [PATCH] Remove uncessary line break. We output empty lines before processing non-whitespace tokens, not after done processing them. --- glslang/MachineIndependent/ShaderLang.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/glslang/MachineIndependent/ShaderLang.cpp b/glslang/MachineIndependent/ShaderLang.cpp index 9898c75d..cb24de88 100644 --- a/glslang/MachineIndependent/ShaderLang.cpp +++ b/glslang/MachineIndependent/ShaderLang.cpp @@ -660,14 +660,12 @@ struct DoPreprocessing { parseContext.setVersionCallback( - [&adjustLine, &lastLine, &outputStream](int line, int version, const char* str) { + [&adjustLine, &outputStream](int line, int version, const char* str) { adjustLine(line); outputStream << "#version " << version; if (str) { outputStream << " " << str; } - outputStream << std::endl; - ++lastLine; }); parseContext.setPragmaCallback([&adjustLine, &outputStream](