Compositor: Cleanup, don't shortcut float values

Use 0.0f instead of 0.f and so on.
This commit is contained in:
2016-02-14 10:12:45 +01:00
parent de9ec80e64
commit 1c870f46e7
18 changed files with 48 additions and 48 deletions

View File

@@ -63,7 +63,7 @@ void MapUVOperation::executePixelSampled(float output[4], float x, float y, Pixe
float du = len_v2(deriv[0]);
float dv = len_v2(deriv[1]);
float factor = 1.0f - threshold * (du / m_inputColorProgram->getWidth() + dv / m_inputColorProgram->getHeight());
if (factor < 0.f) alpha = 0.f;
if (factor < 0.0f) alpha = 0.0f;
else alpha *= factor;
/* "premul" */