}
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. */