1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-24 18:48:01 +02:00

Soft fail on image loading failure

This commit is contained in:
Brian Fiete 2023-12-09 09:10:44 -05:00
parent fa256701c7
commit 90ba850618
2 changed files with 4 additions and 5 deletions

View file

@ -129,14 +129,12 @@ BF_EXPORT uint32* BF_CALLTYPE Res_LoadImage(char* inFileName, int& width, int& h
imageData = new PVRData();
else
{
BF_FATAL("Unknown texture format");
return NULL; // Unknown format
}
if (!imageData->LoadFromFile(fileName))
{
imageData->Deref();
BF_FATAL("Failed to load image");
return NULL;
}