[Gegl-developer] [PATCH 1/1] alien-map: Check error from gegl_cl_set_kernel_args
- From: Jan Vesely <jan vesely rutgers edu>
- To: gegl-developer-list gnome org
- Subject: [Gegl-developer] [PATCH 1/1] alien-map: Check error from gegl_cl_set_kernel_args
- Date: Sun, 20 Apr 2014 12:07:20 -0400
Signed-off-by: Jan Vesely <jan vesely rutgers edu>
---
operations/common/alien-map.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/operations/common/alien-map.c b/operations/common/alien-map.c
index 7efe29d..ff48d34 100644
--- a/operations/common/alien-map.c
+++ b/operations/common/alien-map.c
@@ -181,13 +181,13 @@ cl_process (GeglOperation *operation,
keep.s[1] = (cl_int)o->cpn_2_keep;
keep.s[2] = (cl_int)o->cpn_3_keep;
- gegl_cl_set_kernel_args (cl_data->kernel[0],
- sizeof(cl_mem), &in,
- sizeof(cl_mem), &out,
- sizeof(cl_float3), &freq,
- sizeof(cl_float3), &phaseshift,
- sizeof(cl_int3), &keep,
- NULL);
+ cl_err = gegl_cl_set_kernel_args (cl_data->kernel[0],
+ sizeof(cl_mem), &in,
+ sizeof(cl_mem), &out,
+ sizeof(cl_float3), &freq,
+ sizeof(cl_float3), &phaseshift,
+ sizeof(cl_int3), &keep,
+ NULL);
CL_CHECK;
cl_err = gegl_clEnqueueNDRangeKernel (gegl_cl_get_command_queue (),
--
1.9.0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]