aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-07-15 21:29:21 -0700
committerMatt Turner <[email protected]>2015-07-29 09:34:52 -0700
commit23bba717e1178d54927c4968a0466d706a630432 (patch)
treebd8c32347d6438b2a2a1ec97d1fe5cf7d31cdfff
parenta562313f378a056c8d886e418b518063ab077c39 (diff)
glsl: Avoid double promotion.
-rw-r--r--src/glsl/ir_constant_expression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp
index 7a38fa42193..2853c1643b3 100644
--- a/src/glsl/ir_constant_expression.cpp
+++ b/src/glsl/ir_constant_expression.cpp
@@ -1662,10 +1662,10 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
if (!isnormal(data.d[c]))
data.d[c] = copysign(0.0, op[0]->value.d[c]);
} else {
- data.f[c] = ldexp(op[0]->value.f[c], op[1]->value.i[c]);
+ data.f[c] = ldexpf(op[0]->value.f[c], op[1]->value.i[c]);
/* Flush subnormal values to zero. */
if (!isnormal(data.f[c]))
- data.f[c] = copysign(0.0f, op[0]->value.f[c]);
+ data.f[c] = copysignf(0.0f, op[0]->value.f[c]);
}
}
break;