commit | 9c43e2af2a9ce851afdd27577282838c34bbc6c1 | [log] [tgz] |
---|---|---|
author | Dirk Lemstra <[email protected]> | Fri Sep 21 19:45:40 2018 +0200 |
committer | Dirk Lemstra <[email protected]> | Fri Sep 21 19:45:40 2018 +0200 |
tree | c35356d04d4056bc721d24b2f03d964934865163 | |
parent | 8135ab8c609bce7986ba3e228fa8f6f6d6f11178 [diff] [blame] |
Corrected check for disabling NVIDIA devices.
diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index 051033d..1e1adf1 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c
@@ -2415,7 +2415,7 @@ for (i=0; i < (ssize_t) clEnv->number_devices; i++) { if (strncmp(clEnv->devices[i]->platform_name,"NVIDIA",6) == 0) - clEnv->enabled=MagickFalse; + clEnv->devices[i]->enabled=MagickFalse; } UnlockSemaphoreInfo(clEnv->lock); return(HasOpenCLDevices(clEnv,exception));