[gegl] bin/gegl: do mipmap related env overrides earlier



commit b751d4261a36c164ca7d484960d64738d2cfcf4e
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Feb 7 20:26:20 2017 +0100

    bin/gegl: do mipmap related env overrides earlier

 bin/gegl.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/bin/gegl.c b/bin/gegl.c
index 2836859..225a827 100644
--- a/bin/gegl.c
+++ b/bin/gegl.c
@@ -91,6 +91,14 @@ main (gint    argc,
   GError      *err       = NULL;
   gchar       *path_root = NULL;
 
+#if HAVE_MRG
+  /* we need to override opencl before gegl_main() for it to take effect
+     thus cannot do it from within mrg_main 
+   */
+  g_setenv ("GEGL_USE_OPENCL", "no", TRUE);
+  g_setenv ("GEGL_MIPMAP_RENDERING", "1", TRUE);
+#endif
+
   g_object_set (gegl_config (),
                 "application-license", "GPL3",
                 NULL);


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