diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-14 17:36:21 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-14 17:36:21 +0400 |
commit | b171fd7483c54675096b7a16c7197bc89aa9f112 (patch) | |
tree | ac11c1c89a44437c04eb750f9a4be2339c1a9bf4 /source/blender/compositor/operations | |
parent | 2d6458c64ca10745581ab45772b171e37cfa0ff3 (diff) |
Code cleanup: int/float and float/double conversions
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp b/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp index 3f5d4131660..962a95ebd05 100644 --- a/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp @@ -69,8 +69,8 @@ void DirectionalBlurOperation::initExecution() void DirectionalBlurOperation::executePixel(float output[4], int x, int y, void *data) { const int iterations = pow(2.0f, this->m_data->iter); - float col[4] = {0, 0, 0, 0}; - float col2[4] = {0, 0, 0, 0}; + float col[4] = {0.0f, 0.0f, 0.0f, 0.0f}; + float col2[4] = {0.0f, 0.0f, 0.0f, 0.0f}; this->m_inputProgram->readSampled(col2, x, y, COM_PS_BILINEAR); float ltx = this->m_tx; float lty = this->m_ty; @@ -78,7 +78,7 @@ void DirectionalBlurOperation::executePixel(float output[4], int x, int y, void float lrot = this->m_rot; /* blur the image */ for (int i = 0; i < iterations; ++i) { - const float cs = cos(lrot), ss = sin(lrot); + const float cs = cosf(lrot), ss = sinf(lrot); const float isc = 1.0f / (1.0f + lsc); const float v = isc * (y - this->m_center_y_pix) + lty; |