mirror of
https://github.com/AntonioND/nitro-engine.git
synced 2025-06-18 16:45:33 -04:00
library: Fail on release builds when textures can't be loaded
This commit is contained in:
parent
452f953bc8
commit
96e7948970
@ -112,10 +112,15 @@ int NE_MaterialTexLoadFAT(NE_Material *tex, NE_TextureFormat fmt,
|
||||
NE_Assert(sizeX > 0 && sizeY > 0, "Size must be positive");
|
||||
|
||||
char *ptr = NE_FATLoadData(path);
|
||||
NE_AssertPointer(ptr, "Couldn't load file from FAT");
|
||||
if (ptr == NULL)
|
||||
{
|
||||
NE_DebugPrint("Couldn't load file from FAT");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ret = NE_MaterialTexLoad(tex, fmt, sizeX, sizeY, flags, (u8 *)ptr);
|
||||
free(ptr);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user