]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/generate.cpp
Avoid generating passthroughs for builtin variables
[libs/gl.git] / 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. */