evas/gl - removed unnecessary lines which causes the resource leak and corruption

SVN revision: 75463
This commit is contained in:
ChunEon Park 2012-08-20 12:37:22 +00:00
parent 05136cc824
commit a9593bd3fa
2 changed files with 6 additions and 11 deletions

View File

@ -966,3 +966,8 @@
* Let clip the mapped obj even if it is a child of the mapped obj and do
it only when clipper exists
2012-08-20 Hermet (ChunEon Park)
* Removed unnessesary lines which causes the gles resource leak and
corruption.

View File

@ -888,19 +888,10 @@ _destroy_internal_glue_resources(void *data)
Eina_List *l;
Render_Engine_GL_Resource *rsc;
LKL(resource_lock);
#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
// Create internal resource context if it hasn't been created already
if ((rsc = eina_tls_get(resource_key)) == NULL)
{
ERR("Error retrieving the TLS resources.");
return 0;
}
if (eina_main_loop_is()) rsc->surface = re->win->egl_surface[0];
// EGL
// Delete the Resources
LKL(resource_lock);
EINA_LIST_FOREACH(resource_list, l, rsc)
{
if ((rsc->surface) && (rsc->surface != re->win->egl_surface[0]))
@ -912,7 +903,6 @@ _destroy_internal_glue_resources(void *data)
#else
// GLX
// Delete the Resources
LKL(resource_lock);
EINA_LIST_FOREACH(resource_list, l, rsc)
{
if (rsc)