From: Mikko Rasa Date: Thu, 4 Mar 2021 23:23:52 +0000 (+0200) Subject: Copy location when creating an interface block reference X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=3a2accb016c9cd01347c71d41e44d5ca45917209 Copy location when creating an interface block reference --- diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index c4a29110..42694a8a 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -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;