mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
Fix vertex input check looking at builtin vertex inputs.
This commit is contained in:
@@ -1170,6 +1170,10 @@ bool Shader::validateInternal(StrongRef<ShaderStage> stages[], std::string &err,
|
|||||||
{
|
{
|
||||||
const glslang::TObjectReflection &info = program.getPipeInput(i);
|
const glslang::TObjectReflection &info = program.getPipeInput(i);
|
||||||
|
|
||||||
|
// Avoid builtins.
|
||||||
|
if (info.name.rfind("gl_", 0) == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
int location = info.layoutLocation();
|
int location = info.layoutLocation();
|
||||||
if (location == glslang::TQualifier::layoutLocationEnd)
|
if (location == glslang::TQualifier::layoutLocationEnd)
|
||||||
location = -1;
|
location = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user