Merge pull request #83830 from jsjtxietian/fix-varying-assign-swizzle-check
Fix assign with swizzle in shader not doing varying validation check
This commit is contained in:
commit
9f49da24da
1 changed files with 4 additions and 0 deletions
|
@ -4639,6 +4639,10 @@ bool ShaderLanguage::_validate_assign(Node *p_node, const FunctionInfo &p_functi
|
|||
return false;
|
||||
}
|
||||
|
||||
if (shader->varyings.has(var->name)) {
|
||||
return _validate_varying_assign(shader->varyings[var->name], r_message);
|
||||
}
|
||||
|
||||
if (!(p_function_info.built_ins.has(var->name) && p_function_info.built_ins[var->name].constant)) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue