From 86803cdb5b5ffda02d9356b859b367a2c21611ee Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 27 Feb 2021 01:28:46 +0200 Subject: [PATCH] Don't copy layouts to generated out interfaces --- source/glsl/generate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2