Bug Fix #2541: Shader language function validation logic

ensures that it finds the correct function to validate.
This commit is contained in:
Andrea Chua 2015-11-27 21:27:06 +08:00
parent d1a07ee28b
commit 67a1c3f136

View file

@ -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;
}