]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/tokenizer.cpp
Fix an issue with line numbers after #line being off-by-one
[libs/gl.git] / source / glsl / tokenizer.cpp
index 6ba139ff9fd92b37a459fc619e79088902d2bea2..057aa34219873970412e578a0bc7ae2dc36a4793 100644 (file)
@@ -61,6 +61,7 @@ void Tokenizer::expect(const string &token)
 void Tokenizer::set_location(const Location &loc)
 {
        location = loc;
+       suppress_line_advance = true;
 }
 
 string Tokenizer::parse_token_()