Compositor Compile Fix (Windows):

* sqrtf only takes floats as arguments.
This commit is contained in:
Thomas Dinges
2012-06-14 08:53:37 +00:00
parent 418451fa03
commit e8d48b187b

View File

@@ -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;