evas-gl : use tex_sub_2d() in evas_gl_common_texture_upload 27/90427/1
authorsunghyun kim <scholb.kim@samsung.com>
Fri, 30 Sep 2016 03:57:04 +0000 (12:57 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Fri, 30 Sep 2016 03:57:04 +0000 (12:57 +0900)
Change-Id: I71e9a7e6a92a93afc15b791bb648999109f5deb1

src/modules/evas/engines/gl_common/evas_gl_texture.c

index 83813c8..c3e98a4 100644 (file)
@@ -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;