]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/resolve.cpp
Don't resolve function call arguments with incorrect types
[libs/gl.git] / source / glsl / resolve.cpp
index 82c0a367dfd2e70f89d04e9b9335cb4df23c2ded..7c58bc6b0fe309b3137e2e10b239601cf5797e8e 100644 (file)
@@ -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);