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

@@ -79,8 +79,8 @@ void DisplaceSimpleOperation::executePixelSampled(float output[4], float x, floa
/* clamp nodes to avoid glitches */
u = x - p_dx + 0.5f;
v = y - p_dy + 0.5f;
CLAMP(u, 0.f, this->getWidth() - 1.f);
CLAMP(v, 0.f, this->getHeight() - 1.f);
CLAMP(u, 0.0f, this->getWidth() - 1.0f);
CLAMP(v, 0.0f, this->getHeight() - 1.0f);
this->m_inputColorProgram->readSampled(output, u, v, sampler);
}