Merge pull request #2926 from Magurosenbei/shader_language_function_validation_fix

Bug Fix #2541: Shader language function validation logic
This commit is contained in:
Rémi Verschelde 2015-11-27 14:55:49 +01:00
commit ed4738fbed

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