evas: make it possible to disable preload for buggy driver.
authorCedric Bail <cedric.bail@samsung.com>
Fri, 5 Jul 2013 06:39:44 +0000 (15:39 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Fri, 5 Jul 2013 06:39:44 +0000 (15:39 +0900)
src/modules/evas/engines/gl_common/evas_gl_preload.c

index ffdb909..6c77b77 100644 (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;