Corrected return of error code in clCreateImage.
authorDag Lem <dag@nimrod.no>
Mon, 20 May 2013 13:08:39 +0000 (15:08 +0200)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Tue, 21 May 2013 05:16:02 +0000 (13:16 +0800)
Signed-off-by: Dag Lem <dag@nimrod.no>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_api.c

index 3a7da05..a4e534a 100644 (file)
@@ -317,7 +317,7 @@ clCreateImage(cl_context context,
                          image_format,
                          image_desc,
                          host_ptr,
-                         errcode_ret);
+                         &err);
 error:
   if (errcode_ret)
     *errcode_ret = err;