mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
mesa: Fix compile error with MSVC 2013
This fixes the following compile error:
src\glsl\ir_constant_expression.cpp(1405) : error C2666: 'copysign' : 3
overloads have similar conversions
Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 067ad6e53e)
This commit is contained in:
parent
700b916da1
commit
31e2824d99
1 changed files with 1 additions and 1 deletions
|
|
@ -1402,7 +1402,7 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
|
|||
data.f[c] = ldexp(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.0, op[0]->value.f[c]);
|
||||
data.f[c] = copysign(0.0f, op[0]->value.f[c]);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue