From: Mikko Rasa Date: Thu, 18 Mar 2021 11:20:00 +0000 (+0200) Subject: Record correct source information in interface layout statements X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=975b4d55948ecf57cfab2fb3cb124fbd442a669c;p=libs%2Fgl.git Record correct source information in interface layout statements --- diff --git a/source/glsl/parser.cpp b/source/glsl/parser.cpp index ac35216a..56e4b1b5 100644 --- a/source/glsl/parser.cpp +++ b/source/glsl/parser.cpp @@ -268,6 +268,8 @@ RefPtr Parser::parse_global_declaration() if(is_interface_qualifier(token) && tokenizer.peek_token(1)==";") { RefPtr iface_lo = create_node(); + iface_lo->layout.source = layout->source; + iface_lo->layout.line = layout->line; iface_lo->layout.qualifiers = layout->qualifiers; iface_lo->interface = tokenizer.parse_token(); tokenizer.expect(";");