summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r--src/glsl/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 992853c0466..5bd023f499e 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -454,7 +454,7 @@ ir_constant::ir_constant(const struct glsl_type *type, exec_list *value_list)
ir_constant *
ir_constant::zero(void *mem_ctx, const glsl_type *type)
{
- assert(type->is_numeric());
+ assert(type->is_numeric() || type->is_boolean());
ir_constant *c = new(mem_ctx) ir_constant;
c->type = type;