diff options
author | Ian Romanick <[email protected]> | 2010-07-06 17:41:02 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-07-06 17:44:37 -0700 |
commit | ca088cc277ce9f986693c857f3961dc0e1a4d91c (patch) | |
tree | baec2a0f395913a7439c2c72803be0604cef377e /src/glsl/ir_function_inlining.cpp | |
parent | f14e596f11b4e44c75a880536efb1e8c5a72da7d (diff) |
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.
Diffstat (limited to 'src/glsl/ir_function_inlining.cpp')
-rw-r--r-- | src/glsl/ir_function_inlining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_function_inlining.cpp b/src/glsl/ir_function_inlining.cpp index b3d1f1d1674..6fe1264b0a4 100644 --- a/src/glsl/ir_function_inlining.cpp +++ b/src/glsl/ir_function_inlining.cpp @@ -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]); |