imageBuffer=GetAuthenticOpenCLBuffer(image,device,exception);
if (imageBuffer == (cl_mem) NULL)
goto cleanup;
- filteredImage=CloneImage(image,image->columns,image->rows,MagickTrue,exception);
+ filteredImage=CloneImage(image,image->columns,image->rows,MagickTrue,
+ exception);
if (filteredImage == (Image *) NULL)
goto cleanup;
filteredImageBuffer=GetAuthenticOpenCLBuffer(filteredImage,device,exception);
for (i=0; i<number_parameters; i++)
parametersBufferPtr[i]=(float) parameters[i];
parametersBuffer=CreateOpenCLBuffer(device,CL_MEM_READ_ONLY |
- CL_MEM_COPY_HOST_PTR,number_parameters*sizeof(float),
+ CL_MEM_COPY_HOST_PTR,number_parameters*sizeof(*parametersBufferPtr),
parametersBufferPtr);
parametersBufferPtr=RelinquishMagickMemory(parametersBufferPtr);
if (parametersBuffer == (cl_mem) NULL)
imageBuffer=GetAuthenticOpenCLBuffer(image,device,exception);
if (imageBuffer == (cl_mem) NULL)
goto cleanup;
- filteredImage=CloneImage(image,0,0,MagickTrue,exception);
+ filteredImage=CloneImage(image,image->columns,image->rows,MagickTrue,
+ exception);
if (filteredImage == (Image *) NULL)
goto cleanup;
filteredImageBuffer=GetAuthenticOpenCLBuffer(filteredImage,device,exception);
imageBuffer=GetAuthenticOpenCLBuffer(image,device,exception);
if (imageBuffer == (cl_mem) NULL)
goto cleanup;
- filteredImage=CloneImage(image,0,0,MagickTrue,exception);
+ filteredImage=CloneImage(image,image->columns,image->rows,MagickTrue,
+ exception);
if (filteredImage == (Image *) NULL)
goto cleanup;
filteredImageBuffer=GetAuthenticOpenCLBuffer(filteredImage,device,exception);
imageBuffer=GetAuthenticOpenCLBuffer(image,device,exception);
if (imageBuffer == (cl_mem) NULL)
goto cleanup;
- filteredImage=CloneImage(image,0,0,MagickTrue,exception);
+ filteredImage=CloneImage(image,image->columns,image->rows,MagickTrue,
+ exception);
if (filteredImage == (Image *) NULL)
goto cleanup;
filteredImageBuffer=GetAuthenticOpenCLBuffer(filteredImage,device,exception);