From: Dirk Lemstra Date: Fri, 9 Dec 2016 19:53:05 +0000 (+0100) Subject: Disabled OpenCL in dcraw when IM is compiled without OpenCL support. X-Git-Tag: 7.0.3-10~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3f0416f5a3f580a95a1b3a9ff32075191be62b0;p=imagemagick Disabled OpenCL in dcraw when IM is compiled without OpenCL support. --- diff --git a/coders/dng.c b/coders/dng.c index 2a1ffa453..44b1df962 100644 --- a/coders/dng.c +++ b/coders/dng.c @@ -142,8 +142,12 @@ static void InitializeDcrawOpenCL(ExceptionInfo *exception) static void InitializeDcrawOpenCL(ExceptionInfo *magick_unused(exception)) { magick_unreferenced(exception); +#if defined(MAGICKCORE_WINDOWS_SUPPORT) + (void) SetEnvironmentVariable("DCR_CL_DISABLED","1"); +#endif } #endif + static Image *ReadDNGImage(const ImageInfo *image_info,ExceptionInfo *exception) { ExceptionInfo