glsl2: Clone methods return the type of the thing being cloned
This is as opposed to returning the type of the base class of the hierarchy.
This commit is contained in:
@@ -137,7 +137,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
|
||||
ir_rvalue *param = (ir_rvalue *) param_iter.get();
|
||||
|
||||
/* Generate a new variable for the parameter. */
|
||||
parameters[i] = (ir_variable *)sig_param->clone(ht);
|
||||
parameters[i] = sig_param->clone(ht);
|
||||
parameters[i]->mode = ir_var_auto;
|
||||
next_ir->insert_before(parameters[i]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user