diff options
author | Ian Romanick <[email protected]> | 2016-07-11 15:38:00 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-08-17 10:52:39 +0100 |
commit | 8b123b08cba852b5c9660cc0b6c02c37d432baa9 (patch) | |
tree | c69553406c17e29a8ed48b6684dc2a417a53afae /src | |
parent | cd8764737e8b0caedc8500ad0829ebff6d2a3a8f (diff) |
glsl: Fix typo in ir_unop_b2i implementation
This won't affect the output, but it was, technically, wrong.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl/ir_constant_expression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir_constant_expression.cpp b/src/compiler/glsl/ir_constant_expression.cpp index 6f9d18dd471..fa8d7f758b0 100644 --- a/src/compiler/glsl/ir_constant_expression.cpp +++ b/src/compiler/glsl/ir_constant_expression.cpp @@ -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: |