Corrected bug on HDR loading
This commit is contained in:
parent
50c887cb0a
commit
35c6aff21f
1 changed files with 6 additions and 2 deletions
|
@ -214,7 +214,11 @@ Image LoadImage(const char *fileName)
|
|||
FILE *imFile = fopen(fileName, "rb");
|
||||
|
||||
// Load 32 bit per channel floats data
|
||||
image.data = stbi_loadf(imFile, &image.width, &image.height, &imgBpp, 0);
|
||||
image.data = stbi_loadf_from_file(imFile, &image.width, &image.height, &imgBpp, 0);
|
||||
|
||||
fclose(imFile);
|
||||
|
||||
image.mipmaps = 1;
|
||||
|
||||
if (imgBpp == 3) image.format = UNCOMPRESSED_R32G32B32;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue