]> git.tdb.fi Git - libs/gl.git/commitdiff
Copy location when creating an interface block reference
authorMikko Rasa <tdb@tdb.fi>
Thu, 4 Mar 2021 23:23:52 +0000 (01:23 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 4 Mar 2021 23:23:52 +0000 (01:23 +0200)
source/glsl/generate.cpp

index c4a29110ffc8783f6d671340a5bdb05f8d0c5759..42694a8affeca317ec9e71bf4456dedd522b8bd0 100644 (file)
@@ -211,6 +211,8 @@ void VariableResolver::visit(VariableReference &var)
                        /* The name refers to an interface block with an instance name rather
                        than a variable.  Prepare a new syntax tree node accordingly. */
                        r_iface_ref = new InterfaceBlockReference;
+                       r_iface_ref->source = var.source;
+                       r_iface_ref->line = var.line;
                        r_iface_ref->name = var.name;
                        r_iface_ref->declaration = i->second;
                        r_members = &i->second->members.variables;