From: Dirk Lemstra Date: Thu, 6 Apr 2017 10:39:34 +0000 (+0200) Subject: Fixed OpenCL issue. X-Git-Tag: 7.0.5-5~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=299157ce31a8757f7e8e9c431f35665b00f1a511;p=imagemagick Fixed OpenCL issue. --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 8a110f886..8c731be81 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -2632,6 +2632,9 @@ MagickPrivate const Quantum *GetVirtualPixelsFromNexus(const Image *image, assert(cache_info->signature == MagickCoreSignature); if (cache_info->type == UndefinedCache) return((const Quantum *) NULL); +#if defined(MAGICKCORE_OPENCL_SUPPORT) + CopyOpenCLBuffer(cache_info); +#endif region.x=x; region.y=y; region.width=columns;