glsl2: Fixed cloning of ir_call error instructions.

Those have the callee field set to the null pointer, so
calling the public constructor will segfault.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
This commit is contained in:
Tilman Sauerbeck
2010-09-18 01:56:34 +02:00
committed by Kenneth Graunke
parent a822ae3f1a
commit 3894fddccc
+3
View File
@@ -141,6 +141,9 @@ ir_loop::clone(void *mem_ctx, struct hash_table *ht) const
ir_call *
ir_call::clone(void *mem_ctx, struct hash_table *ht) const
{
if (this->type == glsl_type::error_type)
return ir_call::get_error_instruction(mem_ctx);
exec_list new_parameters;
foreach_iter(exec_list_iterator, iter, this->actual_parameters) {