glsl: Find the "closest" signature when there are multiple matches.