Skip to content

Commit

Permalink
Fix vertex input check looking at builtin vertex inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Sep 7, 2024
1 parent 50ff1e4 commit 247effb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/graphics/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,10 @@ bool Shader::validateInternal(StrongRef<ShaderStage> 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;
Expand Down

0 comments on commit 247effb

Please sign in to comment.