Please, before submitting a new issue verify and check:
Image myimage = LoadImage("myfile");
Hi
In version 2.5 I have this WARNING and I find no problem.
WARNING: Image file format [myfile] is not supported
WARNING: [myfile] Image could not be loaded
Hi
In version 2.5 I have this WARNING and I find no problem.
WARNING: Image file format [myfile] is not supported
WARNING: [myfile] Image could not be loaded
Just always check the null result.
Can you please try to replicate this with latest raylib version from master branch as I have done (and as is required by the issue submission process).
This could be my error (possible) but could also be a regression (possible).
It could also be a platform specific thing, but in my example, i do not even get a return from loadImage to check for a null result.
I will check again though 馃檭
Having checked, it is raylib/core.c at fault, not me.
line 1835 of core.c :
bool result = false;
const char *fileExt = GetExtension(fileName); // <-- GetExtension returns NULL here
char fileExtLower[16] = { 0 };
strcpy(fileExtLower, TextToLower(fileExt)); // TextToLower crashes here as explained in the issue report
fileExt is null at this point and is not being checked.
@MikeDX Thanks! Issue reviewed in commit https://github.com/raysan5/raylib/commit/22b771328750a5baf138b0a125ecc21df1b1b49c.