commit | c2cb84e17b2f7a5db146faa9c9c2a2ffac4b6c19 | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Fri Apr 02 02:17:08 2010 -1000 |
committer | Ian Romanick <ian.d.romanick@intel.com> | Fri Apr 02 11:22:41 2010 -0700 |
tree | b8f09ac3636f438a3fcbd6f3e5d486bfc20249cc | |
parent | dc58b3f8ccd817fdee390a3df5b8e0fb29d5397c [diff] [blame] |
Add bool/int conversion as IR operations. Fixes constructor-09.glsl and CorrectParse2.frag.
diff --git a/ast_function.cpp b/ast_function.cpp index 2ca8976..09b7879 100644 --- a/ast_function.cpp +++ b/ast_function.cpp
@@ -130,7 +130,7 @@ return new ir_expression(ir_unop_f2i, desired_type, src, NULL); else { assert(b == GLSL_TYPE_BOOL); - assert(!"FINISHME: Convert bool to int / uint."); + return new ir_expression(ir_unop_f2b, desired_type, src, NULL); } case GLSL_TYPE_FLOAT: switch (b) {