mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
glsl: Fix typo in ir_unop_b2i implementation
This won't affect the output, but it was, technically, wrong. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
cd8764737e
commit
8b123b08cb
1 changed files with 1 additions and 1 deletions
|
|
@ -603,7 +603,7 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
|
|||
case ir_unop_b2i:
|
||||
assert(op[0]->type->base_type == GLSL_TYPE_BOOL);
|
||||
for (unsigned c = 0; c < op[0]->type->components(); c++) {
|
||||
data.u[c] = op[0]->value.b[c] ? 1 : 0;
|
||||
data.i[c] = op[0]->value.b[c] ? 1 : 0;
|
||||
}
|
||||
break;
|
||||
case ir_unop_i2b:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue