remove unnecessary animated webp related check
this code snippet was introduced in
2703809a23
but does not seem to be needed.
from what i can tell this is some sort of hack that might've been needed
back when we didn't bypass imlib2 when loading webp.
This commit is contained in:
parent
5b3221cfa6
commit
03eb664e89
6
image.c
6
image.c
@ -446,13 +446,7 @@ Imlib_Image img_open(const fileinfo_t *file)
|
|||||||
im = imlib_load_image(file->path);
|
im = imlib_load_image(file->path);
|
||||||
if (im != NULL) {
|
if (im != NULL) {
|
||||||
imlib_context_set_image(im);
|
imlib_context_set_image(im);
|
||||||
#if HAVE_LIBWEBP
|
|
||||||
const char *fmt;
|
|
||||||
if ((fmt = imlib_image_format()) != NULL && !STREQ(fmt, "webp") &&
|
|
||||||
imlib_image_get_data_for_reading_only() == NULL) {
|
|
||||||
#else
|
|
||||||
if (imlib_image_get_data_for_reading_only() == NULL) {
|
if (imlib_image_get_data_for_reading_only() == NULL) {
|
||||||
#endif
|
|
||||||
imlib_free_image();
|
imlib_free_image();
|
||||||
im = NULL;
|
im = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user