parent
921b861f6f
commit
74f1f5eed1
|
@ -316,21 +316,17 @@ evas_gl_common_image_alpha_set(Evas_GL_Image *im, int alpha)
|
||||||
if (!im->im) return im;
|
if (!im->im) return im;
|
||||||
evas_cache_image_load_data(&im->im->cache_entry);
|
evas_cache_image_load_data(&im->im->cache_entry);
|
||||||
im->im->cache_entry.flags.alpha = alpha ? 1 : 0;
|
im->im->cache_entry.flags.alpha = alpha ? 1 : 0;
|
||||||
if (im->tex)
|
|
||||||
|
if (im->tex) evas_gl_common_texture_free(im->tex);
|
||||||
|
if (im->tex_only)
|
||||||
{
|
{
|
||||||
evas_gl_common_texture_free(im->tex);
|
im->tex = evas_gl_common_texture_native_new(im->gc, im->w, im->h,
|
||||||
im->tex = NULL;
|
im->alpha, im);
|
||||||
}
|
}
|
||||||
if (!im->tex)
|
else
|
||||||
{
|
{
|
||||||
if (im->tex_only)
|
im->tex = evas_gl_common_texture_new(im->gc, im->im);
|
||||||
im->tex = evas_gl_common_texture_native_new(im->gc, im->w, im->h,
|
evas_gl_common_texture_update(im->tex, im->im);
|
||||||
im->alpha, im);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
im->tex = evas_gl_common_texture_new(im->gc, im->im);
|
|
||||||
evas_gl_common_texture_update(im->tex, im->im);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return im;
|
return im;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue