From: Mikko Rasa Date: Thu, 25 Feb 2021 23:20:02 +0000 (+0200) Subject: Copy layouts when generating interfaces X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b006be7a2eccaeff9647b5b403d7d0a4ff13da3b;p=libs%2Fgl.git Copy layouts when generating interfaces --- diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index c073d870..42226a91 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -361,6 +361,7 @@ 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->linked_declaration = &var;