[gegl] Bug 687823: Script-Fu scripts crashing GIMP when they run gimp-edit-fill



commit e2f65d882e9fe4499adc4aab3175e4694b5e141e
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Tue Nov 20 18:45:25 2012 +0100

    Bug 687823: Script-Fu scripts crashing GIMP when they run gimp-edit-fill
    
    opencl color conversion is not supported if kernels are
    not compiled successfully

 gegl/opencl/gegl-cl-color.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-color.c b/gegl/opencl/gegl-cl-color.c
index ccd1a46..6a202db 100644
--- a/gegl/opencl/gegl-cl-color.c
+++ b/gegl/opencl/gegl-cl-color.c
@@ -269,7 +269,7 @@ gegl_cl_color_supported (const Babl *in_format,
   if (in_format == out_format)
     return GEGL_CL_COLOR_EQUAL;
 
-  if (choose_kernel (in_format, out_format) >= 0)
+  if (kernels_color && choose_kernel (in_format, out_format) >= 0)
     return GEGL_CL_COLOR_CONVERT;
 
   return GEGL_CL_COLOR_NOT_SUPPORTED;



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