Skip to content
Snippets Groups Projects
Commit 8d618fec authored by Pekka Jääskeläinen's avatar Pekka Jääskeläinen Committed by Pekka Jääskeläinen
Browse files

clGetPlatformIDs return value fix

It should return CL_SUCCESS in case num_platforms == NULL && num_entries
== 0.  At least Glow checks for availability of OpenCL (in general)
using these parameters.

Specs say:
"If platforms is not NULL, the num_entries must be greater than zero."
parent f1dee8d8
No related branches found
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ POname(clGetPlatformIDs)(cl_uint num_entries,
CL_INVALID_VALUE);
POCL_RETURN_ERROR_COND ((num_platforms == NULL && num_entries == 0),
CL_INVALID_VALUE);
CL_SUCCESS);
if (platforms != NULL) {
platforms[0] = &_platforms[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment