]> granicus.if.org Git - imagemagick/commitdiff
Fixed another bug in the OpenCL implementation of RotationalBlurImage.
authordirk <dirk@git.imagemagick.org>
Sun, 10 Jul 2016 13:23:17 +0000 (15:23 +0200)
committerdirk <dirk@git.imagemagick.org>
Sun, 10 Jul 2016 13:23:44 +0000 (15:23 +0200)
MagickCore/accelerate-kernels-private.h

index 73ba00e4988c2d39357b0fdf93859641996ddd45..74db26f4c74b19258950c0670794da27690d283a 100644 (file)
@@ -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))
       {