cedric pushed a commit to branch master.
commit 913d56da9e596aaeb0f2d5703205f3494eac73d9
Author: Cedric Bail <[email protected]>
Date: Fri Jul 5 15:39:44 2013 +0900
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;
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev