forked from enlightenment/efl
evas: make it possible to disable preload for buggy driver.
This commit is contained in:
parent
0453cd16b4
commit
913d56da9e
|
@ -411,6 +411,7 @@ evas_gl_preload_target_unregister(Evas_GL_Texture *tex, Eo *target)
|
|||
int
|
||||
evas_gl_preload_init(void)
|
||||
{
|
||||
if (getenv("EVAS_GL_NOPRELOAD")) return 0;
|
||||
if (async_loader_init++) return async_loader_init;
|
||||
|
||||
eina_lock_new(&async_loader_lock);
|
||||
|
@ -427,6 +428,7 @@ evas_gl_preload_init(void)
|
|||
int
|
||||
evas_gl_preload_shutdown(void)
|
||||
{
|
||||
if (getenv("EVAS_GL_NOPRELOAD")) return 0;
|
||||
if (--async_loader_init) return async_loader_init;
|
||||
|
||||
async_loader_exit = EINA_TRUE;
|
||||
|
|
Loading…
Reference in New Issue