From f127ac306c555464b76818aa73977c5ce5096f95 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 11 Apr 2022 14:22:48 +0300 Subject: [PATCH] Don't resolve function call arguments with incorrect types --- source/glsl/resolve.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/glsl/resolve.cpp b/source/glsl/resolve.cpp index 82c0a367..7c58bc6b 100644 --- a/source/glsl/resolve.cpp +++ b/source/glsl/resolve.cpp @@ -1101,6 +1101,8 @@ void ExpressionResolver::visit(FunctionCall &call) Compatibility compat = get_compatibility(*param_basic, *arg_basic); if(compat==RIGHT_CONVERTIBLE) convert_to(call.arguments[i], *param_basic); + else if(compat!=SAME_TYPE) + return; } } resolve(call, call.declaration->return_type_declaration, false); -- 2.43.0