[gegl] initialize babl before gegl-config



commit 99a398e0305e27a135773028737e539eb919d38b
Author: Michael Murà <mure michael gmail com>
Date:   Sun May 13 00:25:35 2012 +0900

    initialize babl before gegl-config
    
    The opencl code access babl during the configuration

 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 7faf811..6ef1d6f 100644
--- a/gegl/gegl-init.c
+++ b/gegl/gegl-init.c
@@ -475,6 +475,7 @@ gegl_post_parse_hook (GOptionContext *context,
   g_assert (global_time == 0);
   global_time = gegl_ticks ();
   g_type_init ();
+  babl_init ();
   gegl_instrument ("gegl", "gegl_init", 0);
 
   config = (void*)gegl_config ();
@@ -517,7 +518,6 @@ gegl_post_parse_hook (GOptionContext *context,
 
   time = gegl_ticks ();
 
-  babl_init ();
   gegl_instrument ("gegl_init", "babl_init", gegl_ticks () - time);
 
   gegl_init_i18n ();



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