mirror of
https://github.com/libretro/glslang.git
synced 2025-03-02 04:05:30 +00:00
Remove uncessary line break.
We output empty lines before processing non-whitespace tokens, not after done processing them.
This commit is contained in:
parent
46ea5396ef
commit
6aa6d9d3d0
@ -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](
|
||||
|
Loading…
x
Reference in New Issue
Block a user