summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-04-14 17:27:06 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-04-14 17:29:59 +0900
commitc2f5d41f393530458766db0aee3ab5a1b9a0e8f5 (patch)
tree98b12d2234818370b3f4b8025e85bb8a578e1159 /src/modules
parentb0c6a32d681aea398d53cda2d935d0ee10226903 (diff)
Evas GL generic: Fix log domain
The log domain EvasGL is used by evas_gl_common and initialized only when an Evas GL surface is created.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_generic/evas_engine.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c
index ed03737..3fa094f 100644
--- a/src/modules/evas/engines/gl_generic/evas_engine.c
+++ b/src/modules/evas/engines/gl_generic/evas_engine.c
@@ -33,6 +33,17 @@
33 33
34static int _evas_engine_GL_log_dom = -1; 34static int _evas_engine_GL_log_dom = -1;
35 35
36#undef ERR
37#undef DBG
38#undef INF
39#undef WRN
40#undef CRI
41#define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_GL_log_dom, __VA_ARGS__)
42#define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_GL_log_dom, __VA_ARGS__)
43#define INF(...) EINA_LOG_DOM_INFO(_evas_engine_GL_log_dom, __VA_ARGS__)
44#define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_GL_log_dom, __VA_ARGS__)
45#define CRI(...) EINA_LOG_DOM_CRIT(_evas_engine_GL_log_dom, __VA_ARGS__)
46
36static int eng_gl_image_direct_get(void *data EINA_UNUSED, void *image); 47static int eng_gl_image_direct_get(void *data EINA_UNUSED, void *image);
37 48
38static void 49static void
@@ -2296,7 +2307,7 @@ module_open(Evas_Module *em)
2296 /* get whatever engine module we inherit from */ 2307 /* get whatever engine module we inherit from */
2297 if (!_evas_module_engine_inherit(&pfunc, "software_generic")) return 0; 2308 if (!_evas_module_engine_inherit(&pfunc, "software_generic")) return 0;
2298 if (_evas_engine_GL_log_dom < 0) 2309 if (_evas_engine_GL_log_dom < 0)
2299 _evas_engine_GL_log_dom = eina_log_domain_register("evas-gl", EVAS_DEFAULT_LOG_COLOR); 2310 _evas_engine_GL_log_dom = eina_log_domain_register("evas-gl_generic", EVAS_DEFAULT_LOG_COLOR);
2300 if (_evas_engine_GL_log_dom < 0) 2311 if (_evas_engine_GL_log_dom < 0)
2301 { 2312 {
2302 EINA_LOG_ERR("Can not create a module log domain."); 2313 EINA_LOG_ERR("Can not create a module log domain.");