summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-07 08:39:09 -0700
committerEric Anholt <[email protected]>2010-07-07 09:07:52 -0700
commit6de882334ac7f3d32d04261adfed1397e075ffd5 (patch)
tree98b84d95b23a0f5bd9df24bcd794c94d71af7d31
parent773025b92c934014b9ceb4ebfdabcfc9d8587aa2 (diff)
glsl2: Clean up vec_index_to_cond_assign after the clone return type change.
-rw-r--r--src/glsl/ir_vec_index_to_cond_assign.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ir_vec_index_to_cond_assign.cpp b/src/glsl/ir_vec_index_to_cond_assign.cpp
index 6264a430e3b..3f527fcbe71 100644
--- a/src/glsl/ir_vec_index_to_cond_assign.cpp
+++ b/src/glsl/ir_vec_index_to_cond_assign.cpp
@@ -107,8 +107,8 @@ ir_vec_index_to_cond_assign_visitor::convert_vec_index_to_cond_assign(ir_rvalue
/* Just clone the rest of the deref chain when trying to get at the
* underlying variable.
*/
- deref = (ir_dereference *)orig_deref->array->clone(NULL);
- swizzle = new(base_ir) ir_swizzle(deref, i, 0, 0, 0, 1);
+ swizzle = new(base_ir) ir_swizzle(orig_deref->array->clone(NULL),
+ i, 0, 0, 0, 1);
deref = new(base_ir) ir_dereference_variable(var);
assign = new(base_ir) ir_assignment(deref, swizzle, condition);