From: Mikko Rasa Date: Wed, 3 Mar 2021 15:14:12 +0000 (+0200) Subject: Don't copy type declaration of a generated interface variable X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f15a404bf1a02ca5924c0d40260aab8c9dfd9d44;p=libs%2Fgl.git Don't copy type declaration of a generated interface variable It's better to let it be resolved again. --- diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index ac3a4b75..4230a402 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -415,7 +415,6 @@ bool InterfaceGenerator::generate_interface(VariableDeclaration &var, const stri iface_var->sampling = var.sampling; iface_var->interface = iface; iface_var->type = var.type; - iface_var->type_declaration = var.type_declaration; iface_var->name = name; if(stage->type==Stage::GEOMETRY && !copy_block) iface_var->array = ((var.array && var.interface!="in") || iface=="in");