Bug Fix #2541: Shader language function validation logic
ensures that it finds the correct function to validate.
This commit is contained in:
parent
d1a07ee28b
commit
67a1c3f136
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