From: Ian Romanick <ian.d.roman...@intel.com>

Signed-off-by: Ian Romanick <ian.d.roman...@intel.com>
---
 src/compiler/glsl/ir_constant_expression.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/compiler/glsl/ir_constant_expression.cpp 
b/src/compiler/glsl/ir_constant_expression.cpp
index 786c43e..694c9c7 100644
--- a/src/compiler/glsl/ir_constant_expression.cpp
+++ b/src/compiler/glsl/ir_constant_expression.cpp
@@ -1731,6 +1731,9 @@ ir_expression::constant_expression_value(struct 
hash_table *variable_context)
          case GLSL_TYPE_DOUBLE:
             data.d[c] = op[c]->value.d[0];
             break;
+         case GLSL_TYPE_BOOL:
+            data.b[c] = op[c]->value.b[0];
+            break;
          default:
             assert(0);
          }
-- 
2.5.5

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to