Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-06-09 23:57:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-09 23:57:14 +0400
commit8e7d7d5ea56c75739164b98f5fb2f97ff51d697b (patch)
tree7dcdd0f713993af8af39b65cee89b2e11b7f780b /source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp
parent2c1abe1f5861330315a1fc58e7dfe298b8356449 (diff)
code cleanup: reduce float/double promotion
Diffstat (limited to 'source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp
index f14de097dfd..270fedc174b 100644
--- a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp
+++ b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp
@@ -89,7 +89,7 @@ void VariableSizeBokehBlurOperation::executePixel(float *color, int x, int y, Me
if (nx == x && ny == y) {
/* pass */
}
- else if (size>= fabs(dx) && size >= fabs(dy)) {
+ else if (size >= fabsf(dx) && size >= fabsf(dy)) {
float u = 256 + dx*256/size;
float v = 256 + dy*256/size;
inputBokehProgram->read(bokeh, u, v, COM_PS_NEAREST, inputBuffers);
@@ -104,9 +104,9 @@ void VariableSizeBokehBlurOperation::executePixel(float *color, int x, int y, Me
}
}
}
- color[0] = tempColor[0]*(1.0/overallmultiplyerr);
- color[1] = tempColor[1]*(1.0/overallmultiplyerg);
- color[2] = tempColor[2]*(1.0/overallmultiplyerb);
+ color[0] = tempColor[0] * (1.0f / overallmultiplyerr);
+ color[1] = tempColor[1] * (1.0f / overallmultiplyerg);
+ color[2] = tempColor[2] * (1.0f / overallmultiplyerb);
color[3] = 1.0f;
}