[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46572] branches/tile/source/blender/ compositor/operations/COM_DirectionalBlurOperation.cpp: Tile Branch:
Thomas Dinges
blender at dingto.org
Sat May 12 15:02:22 CEST 2012
Revision: 46572
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46572
Author: dingto
Date: 2012-05-12 13:02:21 +0000 (Sat, 12 May 2012)
Log Message:
-----------
Tile Branch:
* Fix compile error, in C++ arguments to pow() must be either both float or both double.
Modified Paths:
--------------
branches/tile/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp
Modified: branches/tile/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp
===================================================================
--- branches/tile/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp 2012-05-12 11:01:29 UTC (rev 46571)
+++ branches/tile/source/blender/compositor/operations/COM_DirectionalBlurOperation.cpp 2012-05-12 13:02:21 UTC (rev 46572)
@@ -64,7 +64,7 @@
}
void DirectionalBlurOperation::executePixel(float* color, int x, int y, MemoryBuffer *inputBuffers[], void* data) {
- const int iterations = pow(2, this->data->iter);
+ const int iterations = pow(2.f, this->data->iter);
float col[4]= {0,0,0,0};
float col2[4]= {0,0,0,0};
this->inputProgram->read(col2, x, y, COM_PS_NEAREST, inputBuffers);
More information about the Bf-blender-cvs
mailing list