- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/hdr/ReaderWriterHDR.cpp
r12987 r13041 72 72 { 73 73 std::string filepath = osgDB::findDataFile(_file, _opts); 74 if (filepath.empty()) 74 if (filepath.empty()) 75 75 return ReadResult::FILE_NOT_FOUND; 76 76 … … 168 168 internalFormat = GL_RGBA8; 169 169 pixelFormat = GL_RGBA; 170 } else { 170 } else { 171 171 internalFormat = GL_RGB32F_ARB; 172 172 pixelFormat = GL_RGB; … … 215 215 if (opt=="NO_YFLIP") 216 216 { 217 // We want to YFLIP because although the file format specification 217 // We want to YFLIP because although the file format specification 218 218 // dictates that +Y M +X N is a valid resolution line, no software (including 219 219 // HDRShop!) actually recognises it; hence everything tends to be written upside down … … 225 225 rawRGBE = true; 226 226 } 227 /* The following are left out for the moment as 228 we don't really do anything with them in OSG 227 /* The following are left out for the moment as 228 we don't really do anything with them in OSG 229 229 else if(opt=="GAMMA") 230 230 { … … 239 239 } 240 240 } 241 241 242 242 // Reject unhandled image formats 243 243 if(rawRGBE==false)
