]> git.tdb.fi Git - libs/gl.git/commitdiff
Copy layouts when generating interfaces
authorMikko Rasa <tdb@tdb.fi>
Thu, 25 Feb 2021 23:20:02 +0000 (01:20 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 25 Feb 2021 23:21:11 +0000 (01:21 +0200)
source/glsl/generate.cpp

index c073d870ac4d779591fa2c896724737a5de278ca..42226a912396171faf0287b4062cbee19fbe5a40 100644 (file)
@@ -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;