Merge pull request #2926 from Magurosenbei/shader_language_function_validation_fix
Bug Fix #2541: Shader language function validation logic
This commit is contained in:
commit
ed4738fbed
1 changed files with 1 additions and 1 deletions
|
@ -1370,7 +1370,7 @@ ShaderLanguage::Node* ShaderLanguage::validate_function_call(Parser&parser, Oper
|
|||
}
|
||||
}
|
||||
|
||||
if (!fail) {
|
||||
if (!fail && name == program->functions[i].name) {
|
||||
p_func->return_cache=pfunc->return_type;
|
||||
return p_func;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue