summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}