Evas GL common: Fix texture preload with RGB+Alpha
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 13 Apr 2015 12:29:37 +0000 (21:29 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 14 Apr 2015 07:37:12 +0000 (16:37 +0900)
src/modules/evas/engines/gl_common/evas_gl_texture.c

index 0db5485..a8f95ed 100644 (file)
@@ -519,9 +519,7 @@ evas_gl_common_texture_new(Evas_Engine_GL_Context *gc, RGBA_Image *im)
         yoffset = im->cache_entry.borders.t;
         break;
       case EVAS_COLORSPACE_ETC1_ALPHA:
-        // One must call evas_gl_common_texture_rgb_a_pair_new() instead.
-        ERR("Trying to upload ETC1+Alpha texture as a normal texture. Abort.");
-        return NULL;
+        return evas_gl_common_texture_rgb_a_pair_new(gc, im);
      default:
         // One pixel gap and two pixels for duplicated borders
         w = im->cache_entry.w + 3;