evas: make it possible to disable preload for buggy driver.

This commit is contained in:
Cedric Bail 2013-07-05 15:39:44 +09:00
parent 0453cd16b4
commit 913d56da9e
1 changed files with 2 additions and 0 deletions

View File

@ -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;