commit | cb4acb99df3441e147bd859c20d9c3533ec95ce8 | [log] [tgz] |
---|---|---|
author | guoyejun <yejun.guo@intel.com> | Tue Sep 13 22:52:48 2016 +0800 |
committer | Kedar Patil <kepatil@nvidia.com> | Tue Sep 13 20:22:48 2016 +0530 |
tree | 8969b27a2cf0907b8c7805ccef6d493d51467505 | |
parent | 4defeaeccb40f70b310d9308b7d2dd3687404bb7 [diff] |
correct the case that properties is NULL for clCreateContextFromType (#8) Handle properties==NULL in clCreateContextFromType According to spec, for function clCreateContextFromType, properties can also be NULL in which case the platform that is selected is implementation-defined, while the current code returns CL_INVALID_PLATFORM.