From: Mikko Rasa Date: Fri, 26 Feb 2021 23:28:46 +0000 (+0200) Subject: Don't copy layouts to generated out interfaces X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=86803cdb5b5ffda02d9356b859b367a2c21611ee;p=libs%2Fgl.git Don't copy layouts to generated out interfaces --- diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index 2ac37a6f..30dca25a 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -416,9 +416,9 @@ bool InterfaceGenerator::generate_interface(VariableDeclaration &var, const stri iface_var->array = var.array; if(iface_var->array) iface_var->array_size = var.array_size; - iface_var->layout = var.layout; if(iface=="in") { + iface_var->layout = var.layout; iface_var->linked_declaration = &var; var.linked_declaration = iface_var; }