diff options
Diffstat (limited to 'src/compiler/glsl/ir_function.cpp')
-rw-r--r-- | src/compiler/glsl/ir_function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/ir_function.cpp b/src/compiler/glsl/ir_function.cpp index 85caa2926b4..3ee0d170fb2 100644 --- a/src/compiler/glsl/ir_function.cpp +++ b/src/compiler/glsl/ir_function.cpp @@ -150,12 +150,12 @@ get_parameter_match_type(const ir_variable *param, return PARAMETER_EXACT_MATCH; if (to_type->is_double()) { - if (from_type->base_type == GLSL_TYPE_FLOAT) + if (from_type->is_float()) return PARAMETER_FLOAT_TO_DOUBLE; return PARAMETER_INT_TO_DOUBLE; } - if (to_type->base_type == GLSL_TYPE_FLOAT) + if (to_type->is_float()) return PARAMETER_INT_TO_FLOAT; /* int -> uint and any other oddball conversions */ |