From Adrian Egli, added std::ifstream::binary qualifier to ifstream usage.

This commit is contained in:
Robert Osfield 2006-05-15 11:38:56 +00:00
parent 56d4c7a269
commit d7fdaecfa0

View File

@ -1222,7 +1222,7 @@ struct WriteRowOperator
osg::Image* readRaw(int sizeX, int sizeY, int sizeZ, int numberBytesPerComponent, int numberOfComponents, const std::string& endian, const std::string& raw_filename)
{
std::ifstream fin(raw_filename.c_str());
std::ifstream fin(raw_filename.c_str(), std::ifstream::binary);
if (!fin) return 0;
GLenum pixelFormat;