[gegl] removing some unnecessary verifications of gegl_config()->use_opencl
- From: Victor Matheus de Araujo Oliveira <vmaolive src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] removing some unnecessary verifications of gegl_config()->use_opencl
- Date: Mon, 23 Apr 2012 15:11:54 +0000 (UTC)
commit 19715e2b855bec6175e2e7a91858dca66abc3409
Author: Victor Oliveira <victormatheus gmail com>
Date: Mon Apr 23 12:10:46 2012 -0300
removing some unnecessary verifications of gegl_config()->use_opencl
gegl_cl_is_accelerated() already verifies it.
gegl/gegl-init.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/gegl-init.c b/gegl/gegl-init.c
index 161450c..3e2ea46 100644
--- a/gegl/gegl-init.c
+++ b/gegl/gegl-init.c
@@ -595,10 +595,10 @@ gegl_post_parse_hook (GOptionContext *context,
swap_clean ();
/* Initialize OpenCL if wanted and possible */
- if (gegl_config()->use_opencl)
+ if (gegl_cl_is_accelerated ())
gegl_cl_init (NULL);
- GEGL_NOTE (GEGL_DEBUG_OPENCL, "Using OpenCL: %d\n", gegl_config()->use_opencl && gegl_cl_is_accelerated ());
+ GEGL_NOTE (GEGL_DEBUG_OPENCL, "Using OpenCL: %d\n", gegl_cl_is_accelerated ());
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]