]> granicus.if.org Git - imagemagick/commitdiff
Fixed OpenCL issue.
authorDirk Lemstra <dirk@git.imagemagick.org>
Thu, 6 Apr 2017 10:39:34 +0000 (12:39 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Thu, 6 Apr 2017 10:47:04 +0000 (12:47 +0200)
MagickCore/cache.c

index 8a110f886a40189671c12481b82a4c663900e8b0..8c731be811ed934abb9e9231890269081bc7be3d 100644 (file)
@@ -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;