From 299157ce31a8757f7e8e9c431f35665b00f1a511 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Thu, 6 Apr 2017 12:39:34 +0200 Subject: [PATCH] Fixed OpenCL issue. --- MagickCore/cache.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.40.0