Fix .hdr images being loaded as LDR before compression
This commit is contained in:
parent
befe79d103
commit
b03d5178fc
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user