Fix abs() on gcc
This commit is contained in:
parent
537d011cc8
commit
55e8f935c5
|
@ -166,7 +166,7 @@ FfxConstantBuffer globalFsr2ConstantBuffers[3] = {
|
||||||
// Lanczos
|
// Lanczos
|
||||||
static float lanczos2(float value)
|
static float lanczos2(float value)
|
||||||
{
|
{
|
||||||
return abs(value) < FFX_EPSILON ? 1.f : (sinf(FFX_PI * value) / (FFX_PI * value)) * (sinf(0.5f * FFX_PI * value) / (0.5f * FFX_PI * value));
|
return std::abs(value) < FFX_EPSILON ? 1.f : (sinf(FFX_PI * value) / (FFX_PI * value)) * (sinf(0.5f * FFX_PI * value) / (0.5f * FFX_PI * value));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate halton number for index and base.
|
// Calculate halton number for index and base.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user