summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir_equals.cpp
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-04-21 10:53:32 +0200
committerSamuel Pitoiset <[email protected]>2017-04-21 19:34:12 +0200
commitcacc823c39044307e6befe12c3f51317f09973e2 (patch)
treeacf639a236ced06911c76517b9637d7f722460e9 /src/compiler/glsl/ir_equals.cpp
parent100721959bb400f16e42aada6ee8215458b9fcdd (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_equals.cpp')
-rw-r--r--src/compiler/glsl/ir_equals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir_equals.cpp b/src/compiler/glsl/ir_equals.cpp
index 58b08d445b9..81980eb50a7 100644
--- a/src/compiler/glsl/ir_equals.cpp
+++ b/src/compiler/glsl/ir_equals.cpp
@@ -58,7 +58,7 @@ ir_constant::equals(const ir_instruction *ir, enum ir_node_type) const
return false;
for (unsigned i = 0; i < type->components(); i++) {
- if (type->base_type == GLSL_TYPE_DOUBLE) {
+ if (type->is_double()) {
if (value.d[i] != other->value.d[i])
return false;
} else {