To disable texture atlas, calling setenv before elm_win_add
*This patch was added for a fix issue related to atlas image of product code.(tizen_4.0)
Change-Id: I422433c05244b785c96e7a9d52469cde7189cb83
// modified to share resource by each gl backend
Eina_TLS context_key;
Eina_TLS shared_key;
+
+ // TIZEN_ONLY(200423) : Add env "EVAS_GL_TEXTURE_ATLAS_DISABLE" to control texture atlas for image upload
+ Eina_Bool disable_texture_atlas;
+ //
};
struct _Evas_GL_Texture_Pool
gc->references = 1;
+ // TIZEN_ONLY(200423) : Add env "EVAS_GL_TEXTURE_ATLAS_DISABLE" to control texture atlas for image upload
+ gc->disable_texture_atlas = EINA_FALSE;
+ if (getenv("EVAS_GL_TEXTURE_ATLAS_DISABLE"))
+ {
+ WRN("Disable Texture Atlas by env - EVAS_GL_TEXTURE_ATLAS_DISABLE");
+ gc->disable_texture_atlas = EINA_TRUE;
+ }
+ //
+
if (context_key)
{
eina_tls_set(context_key, gc);
if (!im->tex && ie->preload) return;
evas_gl_common_image_alloc_ensure(im);
+
+ // TIZEN_ONLY(200423) : Add env "EVAS_GL_TEXTURE_ATLAS_DISABLE" to control texture atlas for image upload
+ im->disable_atlas = gc->disable_texture_atlas;
+ //
+
// alloc ensure can change im->im, so only get the local variable later.
ie = &im->im->cache_entry;
/*