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

Brecht Van Lommel brechtvanlommel at pandora.be
Sat May 12 14:59:34 CEST 2012


This fix is fine, in c++ the arguments to pow() must be either both
float or both double.

Brecht.

On Sat, May 12, 2012 at 11:16 AM, Thomas Dinges <blender at dingto.org> wrote:
> Hi,
> The Tile Branch currently does not compile on windows:
> The issue is in COM_DirectionalBlurIoeration.cpp in the function
>
> DirectionalBlurOperation::executePixel
> 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.
>
> Regards,
> Thomas
>
> 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
>
> www.dingto.org
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers


More information about the Bf-committers mailing list