ir_to_mesa: Validate the linked shaders as well.
This caught the failure in cloning of ir_dereference_record.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user