glsl: don't incorrectly eliminate patches with explicit locations