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.
This commit is contained in:
Michael Natterer 2013-10-20 00:34:18 +02:00
parent a6a07dd29e
commit d4790a74fb

View file

@ -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