summaryrefslogtreecommitdiffstats
path: root/ast_function.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-04-02 02:17:08 -1000
committerIan Romanick <[email protected]>2010-04-02 11:22:41 -0700
commitc2cb84e17b2f7a5db146faa9c9c2a2ffac4b6c19 (patch)
treeb8f09ac3636f438a3fcbd6f3e5d486bfc20249cc /ast_function.cpp
parentdc58b3f8ccd817fdee390a3df5b8e0fb29d5397c (diff)
Add bool/int conversion as IR operations.
Fixes constructor-09.glsl and CorrectParse2.frag.
Diffstat (limited to 'ast_function.cpp')
-rw-r--r--ast_function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast_function.cpp b/ast_function.cpp
index 2ca8976d508..09b7879185b 100644
--- a/ast_function.cpp
+++ b/ast_function.cpp
@@ -130,7 +130,7 @@ convert_component(ir_rvalue *src, const glsl_type *desired_type)
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) {