forked from enlightenment/efl
ok.. a dfb bug.. i have to safeguard...
SVN revision: 6533
This commit is contained in:
parent
b77e71b077
commit
6bdb5980a0
|
@ -54,6 +54,15 @@ evas_engine_directfb_image_load(void *data, char *file, char *key, int *error)
|
|||
/* Image is not in cache or not already used -> create it */
|
||||
re->dfb->CreateImageProvider(re->dfb, file, &provider);
|
||||
if (!provider) return NULL;
|
||||
/* Ok DirectFB you have a BUG with loading... "" files. this is a */
|
||||
/* work-around to double-check in case DirectFB screws up.. but I need to */
|
||||
/* fix this in DirectFB anyway. */
|
||||
if ((!provider->GetSurfaceDescription) ||
|
||||
(!provider->GetImageDescription))
|
||||
{
|
||||
provider->Release(provider);
|
||||
return NULL;
|
||||
}
|
||||
provider->GetSurfaceDescription(provider, &dsc);
|
||||
provider->GetImageDescription(provider, &img_desc);
|
||||
|
||||
|
|
Loading…
Reference in New Issue