ir_to_mesa: Validate the linked shaders as well.
This caught the failure in cloning of ir_dereference_record.
This commit is contained in:
parent
f141fa63a4
commit
1124e5a3cb
1 changed files with 2 additions and 0 deletions
|
|
@ -2037,6 +2037,8 @@ get_mesa_program(GLcontext *ctx, struct gl_shader_program *shader_program,
|
|||
default: assert(!"should not be reached"); break;
|
||||
}
|
||||
|
||||
validate_ir_tree(shader->ir);
|
||||
|
||||
prog = ctx->Driver.NewProgram(ctx, target, 1);
|
||||
if (!prog)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue