* 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.
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]))
#else
// GLX
// Delete the Resources
- LKL(resource_lock);
EINA_LIST_FOREACH(resource_list, l, rsc)
{
if (rsc)