summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-20 11:40:11 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-20 11:40:11 +0200
commit69ca2b497ed71c8e71bee33940f0377e1d9f814f (patch)
tree1e2aa3159e035a5f6980db9ed2dc019636297565
parent147a25e6f8b276e17f8389d5047836b5ba3a6f34 (diff)
downloadufo-filters-69ca2b497ed71c8e71bee33940f0377e1d9f814f.tar.gz
ufo-filters-69ca2b497ed71c8e71bee33940f0377e1d9f814f.tar.bz2
ufo-filters-69ca2b497ed71c8e71bee33940f0377e1d9f814f.tar.xz
ufo-filters-69ca2b497ed71c8e71bee33940f0377e1d9f814f.zip
Fix #165: use current get_kernel API
-rw-r--r--contrib/ufo-med-mad-reject-2d-task.c2
-rw-r--r--src/ufo-median-filter-task.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/ufo-med-mad-reject-2d-task.c b/contrib/ufo-med-mad-reject-2d-task.c
index 7766309..122a80f 100644
--- a/contrib/ufo-med-mad-reject-2d-task.c
+++ b/contrib/ufo-med-mad-reject-2d-task.c
@@ -86,7 +86,7 @@ ufo_med_mad_reject_2d_task_setup (UfoTask *task,
char kernel_opts[1024];
snprintf(kernel_opts, 1023, "-DBOXSIZE=%u", priv->box_size);
- priv->kernel = ufo_resources_get_kernel_with_opts (resources, "med-mad-reject-2d.cl", "med_mad_rej_2D", kernel_opts, error);
+ priv->kernel = ufo_resources_get_kernel (resources, "med-mad-reject-2d.cl", "med_mad_rej_2D", kernel_opts, error);
if (priv->kernel != NULL)
UFO_RESOURCES_CHECK_CLERR (clRetainKernel (priv->kernel));
diff --git a/src/ufo-median-filter-task.c b/src/ufo-median-filter-task.c
index 1467979..13d2e30 100644
--- a/src/ufo-median-filter-task.c
+++ b/src/ufo-median-filter-task.c
@@ -71,10 +71,10 @@ ufo_median_filter_task_setup (UfoTask *task,
priv = UFO_MEDIAN_FILTER_TASK_GET_PRIVATE (task);
option = g_strdup_printf (" -DMEDIAN_BOX_SIZE=%i ", priv->size);
- priv->inner_kernel = ufo_resources_get_kernel_with_opts (resources, "median.cl",
+ priv->inner_kernel = ufo_resources_get_kernel (resources, "median.cl",
"filter_inner", option, error);
- priv->fill_kernel = ufo_resources_get_kernel_with_opts (resources, "median.cl",
+ priv->fill_kernel = ufo_resources_get_kernel (resources, "median.cl",
"fill", option, error);
if (priv->inner_kernel != NULL)