commit | 61b76e6dc6ef3432b74be01f08d80991e29c91e4 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Tue Sep 13 12:04:12 2011 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Tue Sep 13 12:04:12 2011 +0000 |
tree | 01a23bd7397ed1891d13eae17b1c8a4448bab51e | |
parent | fe5faaaa4f43b5897166981cc93b24a6a2ab584e [diff] [blame] |
diff --git a/MagickCore/accelerate.c b/MagickCore/accelerate.c index 8b2194e..4e8a8c9 100644 --- a/MagickCore/accelerate.c +++ b/MagickCore/accelerate.c
@@ -501,8 +501,8 @@ /* Create OpenCL context. */ - status=clGetPlatformIDs(0,NULL,&number_platforms); - if (status == CL_SUCCESS) + status=clGetPlatformIDs(0,(cl_platform_id *) NULL,&number_platforms); + if ((status == CL_SUCCESS) && (number_platforms > 0)) status=clGetPlatformIDs(1,platforms,NULL); if (status != CL_SUCCESS) {