summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir_function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/ir_function.cpp')
-rw-r--r--src/compiler/glsl/ir_function.cpp2
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;