diff options
author | Thomas Dinges <blender@dingto.org> | 2012-06-14 12:53:37 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2012-06-14 12:53:37 +0400 |
commit | e8d48b187b83acb6fad6fbb244bbf8c8bbe51e89 (patch) | |
tree | a0afd309820df9d9bcdefa833e7e33672c161e46 /source/blender | |
parent | 418451fa034209eaed25e49cf7f97e07df2e09d7 (diff) |
Compositor Compile Fix (Windows):
* sqrtf only takes floats as arguments.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp | 2 |
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; |