From e3f0416f5a3f580a95a1b3a9ff32075191be62b0 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 9 Dec 2016 20:53:05 +0100 Subject: [PATCH] Disabled OpenCL in dcraw when IM is compiled without OpenCL support. --- coders/dng.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.40.0