summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-07-20 17:19:57 -0700
committerEric Anholt <eric@anholt.net>2010-07-20 17:30:11 -0700
commit1124e5a3cbba839ffd968742bfa3295c8de5498c (patch)
tree627b4d4322b97ec87f3acbbed443373cc584b166 /src
parentf141fa63a4391621cc92cd2c39724a952b297a58 (diff)
ir_to_mesa: Validate the linked shaders as well.
This caught the failure in cloning of ir_dereference_record.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index 5803960d44..352b496625 100644
--- a/src/mesa/shader/ir_to_mesa.cpp
+++ b/src/mesa/shader/ir_to_mesa.cpp
@@ -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;