ir_to_mesa: Validate the linked shaders as well.

This caught the failure in cloning of ir_dereference_record.
This commit is contained in:
Eric Anholt
2010-07-20 17:19:57 -07:00
parent f141fa63a4
commit 1124e5a3cb

View File

@@ -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;