From 852d1853862b50103627550265e496a7f99d20cd Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 13 Oct 2017 17:25:52 +0200 Subject: Fix if no env device type is given --- ufo/ufo-resources.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ufo/ufo-resources.c') diff --git a/ufo/ufo-resources.c b/ufo/ufo-resources.c index eff3509..0b2ac69 100644 --- a/ufo/ufo-resources.c +++ b/ufo/ufo-resources.c @@ -386,7 +386,7 @@ get_device_type_from_env (void) const gchar *var; gchar **set; guint n_set; - cl_device_type type = CL_DEVICE_TYPE_DEFAULT; + cl_device_type type = 0; var = g_getenv ("UFO_DEVICE_TYPE"); @@ -427,7 +427,7 @@ initialize_opencl (UfoResourcesPrivate *priv) device_type = get_device_type_from_env (); - if (device_type == CL_DEVICE_TYPE_DEFAULT) { + if (device_type == 0) { /* * If the user did not set anything from the outside, check the * device-type property. -- cgit v1.2.3