diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-21 10:42:12 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-21 19:33:42 +0200 |
commit | 362d9de29ce18eff404a9e5fb23d0c7d98827f71 (patch) | |
tree | e73735cf3450adac28cd66ff0c39dffcbb44d689 | |
parent | 87be9faa7811e77471b5bf2964e484bb9de84883 (diff) |
glsl: simplify glsl_type::is_integer_32_64()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
-rw-r--r-- | src/compiler/glsl_types.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h index b98ce66c48d..403663f7b87 100644 --- a/src/compiler/glsl_types.h +++ b/src/compiler/glsl_types.h @@ -491,8 +491,7 @@ struct glsl_type { */ bool is_integer_32_64() const { - return (base_type == GLSL_TYPE_UINT) || (base_type == GLSL_TYPE_INT) || - (base_type == GLSL_TYPE_UINT64) || (base_type == GLSL_TYPE_INT64); + return is_integer() || is_integer_64(); } /** |