[Bf-committers] Tile Branch does not compile on windows + fix

Thomas Dinges blender at dingto.org
Sat May 12 11:16:49 CEST 2012

The Tile Branch currently does not compile on windows:
The issue is in COM_DirectionalBlurIoeration.cpp in the function

I changed the first argument to a float in order to have it compile, not 
sure if that is the right solution for SVN though.


Index: COM_DirectionalBlurOperation.cpp
--- COM_DirectionalBlurOperation.cpp    (revision 46560)
+++ COM_DirectionalBlurOperation.cpp    (working copy)
@@ -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);

Thomas Dinges
Blender Developer, Artist and Musician


More information about the Bf-committers mailing list