diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-21 10:53:32 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-21 19:34:12 +0200 |
commit | cacc823c39044307e6befe12c3f51317f09973e2 (patch) | |
tree | acf639a236ced06911c76517b9637d7f722460e9 /src/compiler/glsl/ir_function.cpp | |
parent | 100721959bb400f16e42aada6ee8215458b9fcdd (diff) |
glsl: make use of glsl_type::is_double()
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/ir_function.cpp')
-rw-r--r-- | src/compiler/glsl/ir_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir_function.cpp b/src/compiler/glsl/ir_function.cpp index 3aeba8119a7..85caa2926b4 100644 --- a/src/compiler/glsl/ir_function.cpp +++ b/src/compiler/glsl/ir_function.cpp @@ -149,7 +149,7 @@ get_parameter_match_type(const ir_variable *param, if (from_type == to_type) return PARAMETER_EXACT_MATCH; - if (to_type->base_type == GLSL_TYPE_DOUBLE) { + if (to_type->is_double()) { if (from_type->base_type == GLSL_TYPE_FLOAT) return PARAMETER_FLOAT_TO_DOUBLE; return PARAMETER_INT_TO_DOUBLE; |