From: dirk Date: Sat, 30 Nov 2013 19:14:02 +0000 (+0000) Subject: Fixed bug in automatic selection of OpenCL device. X-Git-Tag: 7.0.1-0~3080 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b57c9606b7ea5591117074909ecf52f7c29e32a;p=imagemagick Fixed bug in automatic selection of OpenCL device. --- diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index 963172d2f..1f3dbe2a6 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c @@ -2138,13 +2138,12 @@ static MagickBooleanType autoSelectDevice(MagickCLEnv clEnv, ExceptionInfo* exce status = DS_PERF_EVALUATOR_ERROR; goto cleanup; } - InitOpenCLEnvInternal(clEnv, exception); + mStatus=InitOpenCLEnvInternal(clEnv, exception); status = releaseDSProfile(profile, AccelerateScoreRelease); if (status!=DS_SUCCESS) { (void) ThrowMagickException(exception, GetMagickModule(), ModuleWarning, "Error when releasing the profile", "'%s'", "."); } - mStatus = MagickTrue; cleanup: