forked from old/legacy-imlib2
loading: Don't look for cached image when not caching
This commit is contained in:
parent
b39d33c800
commit
3f1f87b1fb
|
@ -379,6 +379,8 @@ __imlib_LoadImage(const char *file, ImlibLoadArgs * ila)
|
||||||
if (!file || file[0] == '\0')
|
if (!file || file[0] == '\0')
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
if (!ila->nocache)
|
||||||
|
{
|
||||||
/* see if we already have the image cached */
|
/* see if we already have the image cached */
|
||||||
im = __imlib_FindCachedImage(file, ila->frame);
|
im = __imlib_FindCachedImage(file, ila->frame);
|
||||||
|
|
||||||
|
@ -414,6 +416,7 @@ __imlib_LoadImage(const char *file, ImlibLoadArgs * ila)
|
||||||
return im;
|
return im;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
im_file = im_key = NULL;
|
im_file = im_key = NULL;
|
||||||
if (ila->fp)
|
if (ila->fp)
|
||||||
|
|
Loading…
Reference in New Issue