From 3a2accb016c9cd01347c71d41e44d5ca45917209 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 5 Mar 2021 01:23:52 +0200 Subject: [PATCH] Copy location when creating an interface block reference --- source/glsl/generate.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.45.2