From: Mikko Rasa Date: Mon, 11 Apr 2022 11:22:48 +0000 (+0300) Subject: Don't resolve function call arguments with incorrect types X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f127ac306c555464b76818aa73977c5ce5096f95;p=libs%2Fgl.git Don't resolve function call arguments with incorrect types --- 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);