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:
authorThomas Dinges <blender@dingto.org>2012-06-14 12:53:37 +0400
committerThomas Dinges <blender@dingto.org>2012-06-14 12:53:37 +0400
commite8d48b187b83acb6fad6fbb244bbf8c8bbe51e89 (patch)
treea0afd309820df9d9bcdefa833e7e33672c161e46
parent418451fa034209eaed25e49cf7f97e07df2e09d7 (diff)
Compositor Compile Fix (Windows):
* sqrtf only takes floats as arguments.
-rw-r--r--source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp b/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp
index 1bdbdf71bdc..aa847c2d10d 100644
--- a/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp
+++ b/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp
@@ -382,7 +382,7 @@ void GlareFogGlowOperation::generateGlare(float *data, MemoryBuffer *inputTile,
BLI_init_rcti(&kernelRect, 0, sz, 0, sz);
ckrn = new MemoryBuffer(NULL, &kernelRect);
- scale = 0.25f*sqrtf(sz*sz);
+ scale = 0.25f*sqrtf((float)sz*sz);
for (y=0; y<sz; ++y) {
v = 2.f*(y / (float)sz) - 1.f;