aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAras Pranckevicius <[email protected]>2010-08-04 16:31:04 +0200
committerIan Romanick <[email protected]>2010-08-04 08:57:02 -0700
commit84ee01f40acf88185484df386b7715034e7685c9 (patch)
treecf9fe0a9176b670b53c1079aebd0ccca49b4d99c
parentc22dee721695402d9f2678c100d2fff5c0c3f21f (diff)
glsl2: Set ir_discard::ir_type when cloning it
Fixes unset ir_type after inlining.
-rw-r--r--src/glsl/ir.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index bee9f6a2de4..f88a243cc02 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -889,6 +889,7 @@ public:
ir_discard(ir_rvalue *cond)
{
+ this->ir_type = ir_type_discard;
this->condition = cond;
}