Fixed filename encoding bug

This commit is contained in:
Konstantin S. Matveyev 2016-08-10 12:58:38 +01:00 committed by Robert Osfield
parent 26bce07f2b
commit e6d4d99edb

View File

@ -18,7 +18,7 @@
#include <osgDB/FileUtils>
#include <osgDB/WriteFile>
#include <osgDB/ObjectWrapper>
#include <fstream>
#include <osgDB/fstream>
#include <sstream>
#include <stdlib.h>
@ -558,7 +558,7 @@ void OutputStream::writeImage( const osg::Image* img )
if ( isBinary() )
{
std::string fullPath = osgDB::findDataFile( img->getFileName() );
std::ifstream infile( fullPath.c_str(), std::ios::in|std::ios::binary );
osgDB::ifstream infile( fullPath.c_str(), std::ios::in|std::ios::binary );
if ( infile )
{
infile.seekg( 0, std::ios::end );