[gegl] opacity: Remove format specia handling in OpenCL path.
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] opacity: Remove format specia handling in OpenCL path.
- Date: Mon, 6 May 2019 11:46:16 +0000 (UTC)
commit ddb2f4225befb88eaaeb506369b7cddb49a6567d
Author: Jan Vesely <jano vesely gmail com>
Date: Sun May 5 16:58:37 2019 -0400
opacity: Remove format specia handling in OpenCL path.
Signed-off-by: Jan Vesely <jano vesely gmail com>
operations/common/opacity.c | 12 ------------
1 file changed, 12 deletions(-)
---
diff --git a/operations/common/opacity.c b/operations/common/opacity.c
index e314f544e..7640cc3d3 100644
--- a/operations/common/opacity.c
+++ b/operations/common/opacity.c
@@ -45,19 +45,7 @@ prepare (GeglOperation *self)
{
const Babl *space = gegl_operation_get_source_space (self, "input");
const Babl *fmt = gegl_operation_get_source_format (self, "input");
- GeglProperties *o = GEGL_PROPERTIES (self);
- if (gegl_operation_use_opencl (self))
- {
- if (babl_get_model_flags (fmt) & BABL_MODEL_FLAG_PREMULTIPLIED)
- fmt = babl_format_with_space ("RaGaBaA float", space);
- else
- {
- fmt = babl_format_with_space ("RGBA float", space);
- o->user_data = o;
- }
- }
- else
fmt = gegl_babl_variant (fmt, GEGL_BABL_VARIANT_ALPHA);
gegl_operation_set_format (self, "input", fmt);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]