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