X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fresolve.cpp;h=7c58bc6b0fe309b3137e2e10b239601cf5797e8e;hb=c585c065b7831eb6ae05e48edc36953d2534db2b;hp=82c0a367dfd2e70f89d04e9b9335cb4df23c2ded;hpb=ac876d8c2ea01e0383709a8a045c3e592c9564eb;p=libs%2Fgl.git 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);