diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-21 10:36:05 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-21 19:33:38 +0200 |
commit | 60caca30197577a910777f754f03fc5df9dbc2d2 (patch) | |
tree | 809d15bd081f432bb64404f5094cddecc3eb2b62 /src/compiler/glsl/ast_to_hir.cpp | |
parent | 64db02b5fabcf740b353904b05bd9b9e8c713b76 (diff) |
glsl: make use of glsl_type::is_boolean()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/compiler/glsl/ast_to_hir.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp index a4a687f687d..4d1b279c9d6 100644 --- a/src/compiler/glsl/ast_to_hir.cpp +++ b/src/compiler/glsl/ast_to_hir.cpp @@ -1487,8 +1487,7 @@ ast_expression::do_hir(exec_list *instructions, * in a scalar boolean. See page 57 of the GLSL 1.50 spec. */ assert(type->is_error() - || ((type->base_type == GLSL_TYPE_BOOL) - && type->is_scalar())); + || (type->is_boolean() && type->is_scalar())); result = new(ctx) ir_expression(operations[this->oper], type, op[0], op[1]); |