forked from enlightenment/efl
evas gl generic - remove dead code
coverity CID 1039633 pointed out dead code and some invalid null checks. fixed!
This commit is contained in:
parent
257e853407
commit
1294a91201
|
@ -519,15 +519,10 @@ eng_image_size_set(void *data, void *image, int w, int h)
|
||||||
((int)im_old->im->cache_entry.w == w) &&
|
((int)im_old->im->cache_entry.w == w) &&
|
||||||
((int)im_old->im->cache_entry.h == h))
|
((int)im_old->im->cache_entry.h == h))
|
||||||
return image;
|
return image;
|
||||||
if (im_old)
|
im = evas_gl_common_image_new(gl_context, w, h,
|
||||||
{
|
eng_image_alpha_get(data, image),
|
||||||
im = evas_gl_common_image_new(gl_context, w, h,
|
eng_image_colorspace_get(data, image));
|
||||||
eng_image_alpha_get(data, image),
|
evas_gl_common_image_free(im_old);
|
||||||
eng_image_colorspace_get(data, image));
|
|
||||||
evas_gl_common_image_free(im_old);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
im = evas_gl_common_image_new(gl_context, w, h, 1, EVAS_COLORSPACE_ARGB8888);
|
|
||||||
return im;
|
return im;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue