From Adrian Egli, added std::ifstream::binary qualifier to ifstream usage.
This commit is contained in:
parent
56d4c7a269
commit
d7fdaecfa0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user