evas: provide ector with a way to get GL symbol.

This commit is contained in:
Cedric BAIL 2015-12-16 15:19:57 -08:00 committed by Jean-Philippe Andre
parent e3238c5620
commit 34a892dbab
2 changed files with 7 additions and 0 deletions

View File

@ -2667,6 +2667,9 @@ module_open(Evas_Module *em)
return 0; return 0;
} }
ector_init();
ector_glsym_set(dlsym, RTLD_DEFAULT);
/* store it for later use */ /* store it for later use */
func = pfunc; func = pfunc;
/* now to override methods */ /* now to override methods */
@ -2810,6 +2813,7 @@ module_open(Evas_Module *em)
static void static void
module_close(Evas_Module *em EINA_UNUSED) module_close(Evas_Module *em EINA_UNUSED)
{ {
ector_shutdown();
eina_log_domain_unregister(_evas_engine_GL_log_dom); eina_log_domain_unregister(_evas_engine_GL_log_dom);
evas_gl_common_module_close(); evas_gl_common_module_close();
} }

View File

@ -5269,7 +5269,9 @@ module_open(Evas_Module *em)
eina_mempool_add("chained_mempool", "Evas_Thread_Command_Ector_Surface", eina_mempool_add("chained_mempool", "Evas_Thread_Command_Ector_Surface",
NULL, sizeof(Evas_Thread_Command_Ector_Surface), 128); NULL, sizeof(Evas_Thread_Command_Ector_Surface), 128);
ector_init();
init_gl(); init_gl();
ector_glsym_set(dlsym, RTLD_DEFAULT);
evas_common_pipe_init(); evas_common_pipe_init();
em->functions = (void *)(&func); em->functions = (void *)(&func);
@ -5280,6 +5282,7 @@ module_open(Evas_Module *em)
static void static void
module_close(Evas_Module *em EINA_UNUSED) module_close(Evas_Module *em EINA_UNUSED)
{ {
ector_shutdown();
eina_mempool_del(_mp_command_rect); eina_mempool_del(_mp_command_rect);
eina_mempool_del(_mp_command_line); eina_mempool_del(_mp_command_line);
eina_mempool_del(_mp_command_polygon); eina_mempool_del(_mp_command_polygon);