correct the case that properties is NULL for clCreateContextFromType (#8)
authorguoyejun <yejun.guo@intel.com>
Tue, 13 Sep 2016 14:52:48 +0000 (22:52 +0800)
committerKedar Patil <kepatil@nvidia.com>
Tue, 13 Sep 2016 14:52:48 +0000 (20:22 +0530)
commitcb4acb99df3441e147bd859c20d9c3533ec95ce8
tree8969b27a2cf0907b8c7805ccef6d493d51467505
parent4defeaeccb40f70b310d9308b7d2dd3687404bb7
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.
icd.c