evas gl generic - remove dead code

coverity CID 1039633 pointed out dead code and some invalid null
checks. fixed!
This commit is contained in:
Carsten Haitzler 2014-08-14 19:44:16 +09:00
parent 257e853407
commit 1294a91201
1 changed files with 4 additions and 9 deletions

View File

@ -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.h == h))
return image;
if (im_old)
{
im = evas_gl_common_image_new(gl_context, w, h,
eng_image_alpha_get(data, image),
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);
im = evas_gl_common_image_new(gl_context, w, h,
eng_image_alpha_get(data, image),
eng_image_colorspace_get(data, image));
evas_gl_common_image_free(im_old);
return im;
}