From 247effb43b5c1de608175057bde9946118472d62 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 7 Sep 2024 19:22:34 -0300 Subject: [PATCH] Fix vertex input check looking at builtin vertex inputs. --- src/modules/graphics/Shader.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/graphics/Shader.cpp b/src/modules/graphics/Shader.cpp index ecb82c20d..4d62d9a45 100644 --- a/src/modules/graphics/Shader.cpp +++ b/src/modules/graphics/Shader.cpp @@ -1170,6 +1170,10 @@ bool Shader::validateInternal(StrongRef stages[], std::string &err, { const glslang::TObjectReflection &info = program.getPipeInput(i); + // Avoid builtins. + if (info.name.rfind("gl_", 0) == 0) + continue; + int location = info.layoutLocation(); if (location == glslang::TQualifier::layoutLocationEnd) location = -1;