From a9fafc6504ebccdc0fee3d2529c3fe6068cc86b8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 28 Mar 2010 01:29:18 -0700 Subject: Don't let swizzles with duplicated components be considered as lvalues. Fixes swizzle2.frag. --- ir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir.h b/ir.h index 600a2cd78d..3ef3708369 100644 --- a/ir.h +++ b/ir.h @@ -432,7 +432,7 @@ public: bool is_lvalue() { - return val->is_lvalue(); + return val->is_lvalue() && !mask.has_duplicates; } ir_rvalue *val; -- cgit v1.2.3