[gegl/soc-2012-editor] opencl: bug in init



commit cab99a833aeca2792ad883c0a18a493377483253
Author: Victor Oliveira <victormatheus gmail com>
Date:   Sat Apr 28 15:39:25 2012 -0300

    opencl: bug in init

 gegl/gegl-init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/gegl-init.c b/gegl/gegl-init.c
index 242c017..7faf811 100644
--- a/gegl/gegl-init.c
+++ b/gegl/gegl-init.c
@@ -302,7 +302,7 @@ GeglConfig *gegl_config (void)
             }
         }
 
-      if (g_getenv ("GEGL_USE_OPENCL") != NULL && strcmp(g_getenv ("GEGL_USE_OPENCL"), "yes") == 1)
+      if (g_getenv ("GEGL_USE_OPENCL") != NULL && !g_str_equal(g_getenv ("GEGL_USE_OPENCL"), "yes"))
         config->use_opencl = FALSE;
       else
         config->use_opencl = TRUE;



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