glsl: reorder link_and_validate_uniforms() calls