Add conversion of bool to float as an IR operation to match int to float.
This commit is contained in:
parent
106d122318
commit
dc58b3f8cc
5 changed files with 9 additions and 2 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue