glsl: always return true at the end of link_varyings

Require that the function returns false before we get to the end if there
is any linker error.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34307>
This commit is contained in:
Marek Olšák
2025-03-31 13:08:43 -04:00
parent 4fe3ea1427
commit b3f01773ac
+2 -1
View File
@@ -4555,7 +4555,8 @@ link_varyings(struct gl_shader_program *prog, unsigned first,
has_xfb_qualifiers, mem_ctx))
return false;
return prog->data->LinkStatus != LINKING_FAILURE;
assert(prog->data->LinkStatus != LINKING_FAILURE);
return true;
}
bool