]> git.tdb.fi Git - libs/gl.git/commitdiff
Don't copy layouts to generated out interfaces
authorMikko Rasa <tdb@tdb.fi>
Fri, 26 Feb 2021 23:28:46 +0000 (01:28 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 26 Feb 2021 23:28:46 +0000 (01:28 +0200)
source/glsl/generate.cpp

index 2ac37a6ffae788a16c6cc367dbcf53b9fdb61dcb..30dca25a2939c28068f3493e18275ebd51ca0026 100644 (file)
@@ -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;
        }