From: Mikko Rasa Date: Sat, 13 Mar 2021 11:46:28 +0000 (+0200) Subject: Avoid generating passthroughs for builtin variables X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=91e2fb59219089ac0f16bc49152c20be42a14cc5;p=libs%2Fgl.git Avoid generating passthroughs for builtin variables --- diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index ce128372..c670bc1a 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -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. */