From 67a1c3f136c33433e68a4bf2e9cefaf8ccc1e4e5 Mon Sep 17 00:00:00 2001 From: Andrea Chua Date: Fri, 27 Nov 2015 21:27:06 +0800 Subject: [PATCH] Bug Fix #2541: Shader language function validation logic ensures that it finds the correct function to validate. --- servers/visual/shader_language.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index 6c5f64edd93..68a60e26f53 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -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; }