]> git.tdb.fi Git - libs/gl.git/commitdiff
Avoid generating passthroughs for builtin variables
authorMikko Rasa <tdb@tdb.fi>
Sat, 13 Mar 2021 11:46:28 +0000 (13:46 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 13 Mar 2021 14:14:32 +0000 (16:14 +0200)
source/glsl/generate.cpp

index ce1283721d6f7b0796e40808b3425acd49d49b64..c670bc1a814ee1002eac71285c9002fe568c1968 100644 (file)
@@ -1224,7 +1224,8 @@ void InterfaceGenerator::visit(VariableDeclaration &var)
        }
        else if(var.interface=="in" && current_block==&stage->content)
        {
-               declared_inputs.push_back(&var);
+               if(var.name.compare(0, 3, "gl_"))
+                       declared_inputs.push_back(&var);
 
                /* Try to link input variables in global scope with output variables from
                previous stage. */