summaryrefslogtreecommitdiff
path: root/ufo/ufo-resources.c
diff options
context:
space:
mode:
Diffstat (limited to 'ufo/ufo-resources.c')
-rw-r--r--ufo/ufo-resources.c4
1 files changed, 2 insertions, 2 deletions
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.