Fixed filename encoding bug
This commit is contained in:
parent
26bce07f2b
commit
e6d4d99edb
@ -18,7 +18,7 @@
|
|||||||
#include <osgDB/FileUtils>
|
#include <osgDB/FileUtils>
|
||||||
#include <osgDB/WriteFile>
|
#include <osgDB/WriteFile>
|
||||||
#include <osgDB/ObjectWrapper>
|
#include <osgDB/ObjectWrapper>
|
||||||
#include <fstream>
|
#include <osgDB/fstream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@ -558,7 +558,7 @@ void OutputStream::writeImage( const osg::Image* img )
|
|||||||
if ( isBinary() )
|
if ( isBinary() )
|
||||||
{
|
{
|
||||||
std::string fullPath = osgDB::findDataFile( img->getFileName() );
|
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 )
|
if ( infile )
|
||||||
{
|
{
|
||||||
infile.seekg( 0, std::ios::end );
|
infile.seekg( 0, std::ios::end );
|
||||||
|
Loading…
Reference in New Issue
Block a user