mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 10:20:22 +01:00
mesa: when linking a shader program, make sure all the shaders compiled OK
This commit is contained in:
parent
cb79c5c7c6
commit
1726b7d1d3
1 changed files with 8 additions and 0 deletions
|
|
@ -388,6 +388,14 @@ _slang_link(GLcontext *ctx,
|
|||
|
||||
_mesa_clear_shader_program_data(ctx, shProg);
|
||||
|
||||
/* check that all programs compiled successfully */
|
||||
for (i = 0; i < shProg->NumShaders; i++) {
|
||||
if (!shProg->Shaders[i]->CompileStatus) {
|
||||
link_error(shProg, "linking with uncompiled shader\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
shProg->Uniforms = _mesa_new_uniform_list();
|
||||
shProg->Varying = _mesa_new_parameter_list();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue