[gegl] Initialize babl in gegl_cl_init



commit 818b3673797ac411f11815d90f7ef5764558356b
Author: Jon Nordby <jononor gmail com>
Date:   Sun Jul 29 14:58:46 2012 +0200

    Initialize babl in gegl_cl_init
    
    The initialization of openCL creates Babl types, so babl needs to be initialized.
    This made the gobject introspection scanner crash because gegl_processor_class_init
    triggered this codepath, and babl was not initialized.

 gegl/opencl/gegl-cl-init.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-init.c b/gegl/opencl/gegl-cl-init.c
index 4d9eb6b..49cb01e 100644
--- a/gegl/opencl/gegl-cl-init.c
+++ b/gegl/opencl/gegl-cl-init.c
@@ -199,6 +199,8 @@ gegl_cl_init (GError **error)
 
   if (!cl_state.is_accelerated)
     {
+        babl_init();
+
       #ifdef G_OS_WIN32
         HINSTANCE module;
         module = LoadLibrary ("OpenCL.dll");



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