From: Mikko Rasa Date: Mon, 1 Mar 2021 15:39:07 +0000 (+0200) Subject: Fix an issue with line numbers after #line being off-by-one X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=cee8080379ea2719345245eb69fc1b1cec585462;p=libs%2Fgl.git Fix an issue with line numbers after #line being off-by-one I had added the flag for this back in 1083ad1 but forgot to use it. --- diff --git a/source/glsl/tokenizer.cpp b/source/glsl/tokenizer.cpp index 6ba139ff..057aa342 100644 --- a/source/glsl/tokenizer.cpp +++ b/source/glsl/tokenizer.cpp @@ -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_()