[gimp] app: always disable CL before GEGL is initialized
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: always disable CL before GEGL is initialized
- Date: Sat, 19 Oct 2013 22:35:17 +0000 (UTC)
commit d4790a74fb89f49f03ac4af9b70727cafed84d22
Author: Michael Natterer <mitch gimp org>
Date: Sun Oct 20 00:34:18 2013 +0200
app: always disable CL before GEGL is initialized
This way we only enable if wanted in gimprc, instead of always
enabling, and then disabling again if wanted in gimprc.
app/app.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/app.c b/app/app.c
index 5be270e..2023b8b 100644
--- a/app/app.c
+++ b/app/app.c
@@ -84,6 +84,14 @@ void
app_libs_init (GOptionContext *context,
gboolean no_interface)
{
+ /* disable OpenCL before GEGL is even initialized; this way we only
+ * enable if wanted in gimprc, instead of always enabling, and then
+ * disabling again if wanted in gimprc
+ */
+ g_object_set (gegl_config (),
+ "use-opencl", FALSE,
+ NULL);
+
g_option_context_add_group (context, gegl_get_option_group ());
#ifndef GIMP_CONSOLE_COMPILATION
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]