glsl/linker: fix output variable overlap check