Show
Ignore:
Timestamp:
05/15/06 13:38:56 (8 years ago)
Author:
robert
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp

    r5032 r5139  
    12231223osg::Image* readRaw(int sizeX, int sizeY, int sizeZ, int numberBytesPerComponent, int numberOfComponents, const std::string& endian, const std::string& raw_filename) 
    12241224{ 
    1225     std::ifstream fin(raw_filename.c_str()); 
     1225    std::ifstream fin(raw_filename.c_str(), std::ifstream::binary); 
    12261226    if (!fin) return 0; 
    12271227