Merge pull request #273 from wsmind/master

Fix .hdr images being loaded as LDR before compression
pull/274/head
Ignacio 6 years ago committed by GitHub
commit 8e8b3b82e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save