]> git.tdb.fi Git - libs/gl.git/commitdiff
Record correct source information in interface layout statements
authorMikko Rasa <tdb@tdb.fi>
Thu, 18 Mar 2021 11:20:00 +0000 (13:20 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 18 Mar 2021 11:25:09 +0000 (13:25 +0200)
source/glsl/parser.cpp

index ac35216a4cdd164aeb80b1d1f597e4b1fb4803ec..56e4b1b50fcf75573230c949256e0c5c33655d64 100644 (file)
@@ -268,6 +268,8 @@ RefPtr<Statement> Parser::parse_global_declaration()
                if(is_interface_qualifier(token) && tokenizer.peek_token(1)==";")
                {
                        RefPtr<InterfaceLayout> iface_lo = create_node<InterfaceLayout>();
+                       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(";");