projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
773025b
)
glsl2: Clean up vec_index_to_cond_assign after the clone return type change.
author
Eric Anholt
<eric@anholt.net>
Wed, 7 Jul 2010 15:39:09 +0000
(08:39 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 7 Jul 2010 16:07:52 +0000
(09:07 -0700)
src/glsl/ir_vec_index_to_cond_assign.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_vec_index_to_cond_assign.cpp
b/src/glsl/ir_vec_index_to_cond_assign.cpp
index 6264a430e3b5332db39a46a91d81851e71693342..3f527fcbe71ce534d77cb0fe576f11438b7603ce 100644
(file)
--- 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);