forked from enlightenment/efl
Evas GL common: Fix texture preload with RGB+Alpha
This commit is contained in:
parent
78cd7336aa
commit
99347e9178
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue