diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-02 02:13:43 -1000 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-02 11:22:41 -0700 |
commit | dc58b3f8ccd817fdee390a3df5b8e0fb29d5397c (patch) | |
tree | 99a3fdc0b09dff4c924b3b587eae0b58b7f20ef5 /ast_function.cpp | |
parent | 106d122318b94188b0e00115cd5242e0e679f807 (diff) |
Add conversion of bool to float as an IR operation to match int to float.
Diffstat (limited to 'ast_function.cpp')
-rw-r--r-- | ast_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ast_function.cpp b/ast_function.cpp index 91d4f15a3b..2ca8976d50 100644 --- a/ast_function.cpp +++ b/ast_function.cpp @@ -139,7 +139,7 @@ convert_component(ir_rvalue *src, const glsl_type *desired_type) 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: { |