commit | dc58b3f8ccd817fdee390a3df5b8e0fb29d5397c | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Fri Apr 02 02:13:43 2010 -1000 |
committer | Ian Romanick <ian.d.romanick@intel.com> | Fri Apr 02 11:22:41 2010 -0700 |
tree | 99a3fdc0b09dff4c924b3b587eae0b58b7f20ef5 | |
parent | 106d122318b94188b0e00115cd5242e0e679f807 [diff] [blame] |
Add conversion of bool to float as an IR operation to match int to float.
diff --git a/ast_function.cpp b/ast_function.cpp index 91d4f15..2ca8976 100644 --- a/ast_function.cpp +++ b/ast_function.cpp
@@ -139,7 +139,7 @@ case GLSL_TYPE_INT: return new ir_expression(ir_unop_i2f, desired_type, src, NULL); case GLSL_TYPE_BOOL: - assert(!"FINISHME: Convert bool to float."); + return new ir_expression(ir_unop_b2f, desired_type, src, NULL); } break; case GLSL_TYPE_BOOL: {