From: dirk Date: Sun, 10 Jul 2016 13:23:17 +0000 (+0200) Subject: Fixed another bug in the OpenCL implementation of RotationalBlurImage. X-Git-Tag: 7.0.2-4~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdf0c636b0dd3c1a32a7667e6a84698713f84a68;p=imagemagick Fixed another bug in the OpenCL implementation of RotationalBlurImage. --- diff --git a/MagickCore/accelerate-kernels-private.h b/MagickCore/accelerate-kernels-private.h index 73ba00e49..74db26f4c 100644 --- a/MagickCore/accelerate-kernels-private.h +++ b/MagickCore/accelerate-kernels-private.h @@ -2778,7 +2778,7 @@ OPENCL_ENDIF() int cx = ClampToCanvas(blurCenter.x+center_x*cos_theta[i]-center_y*sin_theta[i]+0.5f,columns); int cy = ClampToCanvas(blurCenter.y+center_x*sin_theta[i]+center_y*cos_theta[i]+0.5f,rows); - float4 pixel = ReadFloat4(image, number_channels, columns, cx, cy, channel); + float4 pixel = ReadFloat4(image, number_channels, columns, cx, cy, AllChannels); if ((number_channels == 4) || (number_channels == 2)) {