From 913d56da9e596aaeb0f2d5703205f3494eac73d9 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Fri, 5 Jul 2013 15:39:44 +0900 Subject: [PATCH] evas: make it possible to disable preload for buggy driver. --- src/modules/evas/engines/gl_common/evas_gl_preload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/evas/engines/gl_common/evas_gl_preload.c b/src/modules/evas/engines/gl_common/evas_gl_preload.c index ffdb909..6c77b77 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_preload.c +++ b/src/modules/evas/engines/gl_common/evas_gl_preload.c @@ -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; -- 2.7.4