glsl: Fix condition to generate shader link error