spacegrapher pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3d97c4c5a8789f1cf9bc338f09d4412bde28676f

commit 3d97c4c5a8789f1cf9bc338f09d4412bde28676f
Author: Dongyeon Kim <dy5....@samsung.com>
Date:   Wed Nov 11 16:15:24 2015 +0900

    Revert "Evas GL: Fix crash with dynamic hint set using tbm surface"
    
    Upcoming patch will fix this crash issue in a more proper way, so I revert 
this patch here.
    
    This reverts commit 8b1b8d5cf04f5e176cc4de6c04790e90eeac4ff2.
---
 src/modules/evas/engines/gl_common/evas_gl_image.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_image.c 
b/src/modules/evas/engines/gl_common/evas_gl_image.c
index 6646a29..2d8d936 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_image.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_image.c
@@ -622,10 +622,6 @@ evas_gl_common_image_content_hint_set(Evas_GL_Image *im, 
int hint)
      }
    if (im->content_hint == EVAS_IMAGE_CONTENT_HINT_DYNAMIC)
      {
-        Evas_GL_Texture *tex;
-        tex = evas_gl_common_texture_dynamic_new(im->gc, im);
-        if (!tex) return;
-
         if (im->cs.data)
           {
              if (!im->cs.no_free) free(im->cs.data);
@@ -654,7 +650,7 @@ evas_gl_common_image_content_hint_set(Evas_GL_Image *im, 
int hint)
              evas_gl_common_texture_free(im->tex, EINA_TRUE);
              im->tex = NULL;
           }
-        im->tex = tex;
+        im->tex = evas_gl_common_texture_dynamic_new(im->gc, im);
         im->tex_only = 1;
      }
    else

-- 


Reply via email to