[gegl] init: enable OpenCL by default



commit 4ebd46b7dbebd2398df417e875605c4bb2fe7786
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Sat Apr 14 19:45:13 2012 +0200

    init: enable OpenCL by default
    
    It makes sense to have it on by default to encourage wider testing.

 gegl/gegl-init.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gegl/gegl-init.c b/gegl/gegl-init.c
index 896cca8..161450c 100644
--- a/gegl/gegl-init.c
+++ b/gegl/gegl-init.c
@@ -302,10 +302,10 @@ GeglConfig *gegl_config (void)
             }
         }
 
-      if (g_getenv ("GEGL_USE_OPENCL") != NULL && strcmp(g_getenv ("GEGL_USE_OPENCL"), "yes") == 0)
-        config->use_opencl = TRUE;
-      else
+      if (g_getenv ("GEGL_USE_OPENCL") != NULL && strcmp(g_getenv ("GEGL_USE_OPENCL"), "yes") == 1)
         config->use_opencl = FALSE;
+      else
+        config->use_opencl = TRUE;
 
       if (gegl_swap_dir())
         config->swap = g_strdup(gegl_swap_dir ());



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]