From 91e2fb59219089ac0f16bc49152c20be42a14cc5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 13 Mar 2021 13:46:28 +0200 Subject: [PATCH] Avoid generating passthroughs for builtin variables --- source/glsl/generate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. */ -- 2.45.2