From: sunghyun kim Date: Fri, 30 Sep 2016 03:57:04 +0000 (+0900) Subject: evas-gl : use tex_sub_2d() in evas_gl_common_texture_upload X-Git-Tag: accepted/tizen/3.0/ivi/20161011.043919~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b72bd3d6cebba8d66d2393d3c36b8b90434cae6;p=platform%2Fupstream%2Fefl.git evas-gl : use tex_sub_2d() in evas_gl_common_texture_upload Change-Id: I71e9a7e6a92a93afc15b791bb648999109f5deb1 --- diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c index 83813c8..c3e98a4 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_texture.c +++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c @@ -1099,11 +1099,8 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, RGBA_Image *im, unsigned int if (tex->gc->shared->info.unpack_row_length) glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); glPixelStorei(GL_UNPACK_ALIGNMENT, bytes_count); - if (tex->pt->whole) - { - _tex_2d(tex->gc, tex->pt->intformat, tex->w, tex->h, fmt, tex->pt->dataformat, im->image.data); - } - else if ((tex->gc->shared->info.tune.atlas.max_memcpy_size > im->cache_entry.w) && + + if ((tex->gc->shared->info.tune.atlas.max_memcpy_size > im->cache_entry.w) && (tex->gc->shared->info.tune.atlas.max_memcpy_size > im->cache_entry.h)) { int sw, sh, dw, dh, sidx, didx;