evas/gl - removed unnecessary lines which causes the resource leak and corruption
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 20 Aug 2012 12:37:22 +0000 (12:37 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 20 Aug 2012 12:37:22 +0000 (12:37 +0000)
SVN revision: 75463

legacy/evas/ChangeLog
legacy/evas/src/modules/engines/gl_x11/evas_engine.c

index 5b4fc80..81946fa 100644 (file)
 
        * 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.
index a737172..b151798 100644 (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)