jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=34a892dbab13b14bd01ac30474a30f230c6b135d

commit 34a892dbab13b14bd01ac30474a30f230c6b135d
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Wed Dec 16 15:19:57 2015 -0800

    evas: provide ector with a way to get GL symbol.
---
 src/modules/evas/engines/gl_generic/evas_engine.c       | 4 ++++
 src/modules/evas/engines/software_generic/evas_engine.c | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c 
b/src/modules/evas/engines/gl_generic/evas_engine.c
index 6e4c2c8..f67ffda 100644
--- a/src/modules/evas/engines/gl_generic/evas_engine.c
+++ b/src/modules/evas/engines/gl_generic/evas_engine.c
@@ -2667,6 +2667,9 @@ module_open(Evas_Module *em)
         return 0;
      }
 
+   ector_init();
+   ector_glsym_set(dlsym, RTLD_DEFAULT);
+
    /* store it for later use */
    func = pfunc;
    /* now to override methods */
@@ -2810,6 +2813,7 @@ module_open(Evas_Module *em)
 static void
 module_close(Evas_Module *em EINA_UNUSED)
 {
+   ector_shutdown();
    eina_log_domain_unregister(_evas_engine_GL_log_dom);
    evas_gl_common_module_close();
 }
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c 
b/src/modules/evas/engines/software_generic/evas_engine.c
index 728a736..b71399f 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -5269,7 +5269,9 @@ module_open(Evas_Module *em)
      eina_mempool_add("chained_mempool", "Evas_Thread_Command_Ector_Surface",
                       NULL, sizeof(Evas_Thread_Command_Ector_Surface), 128);
 
+   ector_init();
    init_gl();
+   ector_glsym_set(dlsym, RTLD_DEFAULT);
    evas_common_pipe_init();
 
    em->functions = (void *)(&func);
@@ -5280,6 +5282,7 @@ module_open(Evas_Module *em)
 static void
 module_close(Evas_Module *em EINA_UNUSED)
 {
+   ector_shutdown();
    eina_mempool_del(_mp_command_rect);
    eina_mempool_del(_mp_command_line);
    eina_mempool_del(_mp_command_polygon);

-- 


Reply via email to