Fix .hdr images being loaded as LDR before compression

This commit is contained in:
Remi Papillie 2018-01-28 20:18:13 +01:00
parent befe79d103
commit b03d5178fc

View File

@ -1913,6 +1913,12 @@ FloatImage * nv::ImageIO::loadFloat(const char * fileName, Stream & s)
}
#endif
#if defined(HAVE_STBIMAGE)
if (strCaseDiff(extension, ".hdr") == 0) {
return loadFloatSTB(s);
}
#endif
#if defined(HAVE_FREEIMAGE)
FREE_IMAGE_FORMAT fif = FreeImage_GetFIFFromFilename(fileName);
if (fif != FIF_UNKNOWN && FreeImage_FIFSupportsReading(fif)) {