From Farshid Lashkari, "I believe their is small error in how OutputStream handles the WriteImageHint. In the "writeImage" method, it converts the WriteImageHint to an internal "decision" flag. During this conversion, it seems to be swapping the behavior for WRITE_EXTERNAL_FILE and WRITE_USE_EXTERNAL. I've attached what I believe to be the correct conversion."
This commit is contained in:
parent
8d323fcdea
commit
0d97aab94f
@ -324,8 +324,8 @@ void OutputStream::writeImage( const osg::Image* img )
|
|||||||
{
|
{
|
||||||
case OutputStream::WRITE_INLINE_DATA: decision = IMAGE_INLINE_DATA; break;
|
case OutputStream::WRITE_INLINE_DATA: decision = IMAGE_INLINE_DATA; break;
|
||||||
case OutputStream::WRITE_INLINE_FILE: decision = IMAGE_INLINE_FILE; break;
|
case OutputStream::WRITE_INLINE_FILE: decision = IMAGE_INLINE_FILE; break;
|
||||||
case OutputStream::WRITE_EXTERNAL_FILE: decision = IMAGE_EXTERNAL; break;
|
case OutputStream::WRITE_EXTERNAL_FILE: decision = IMAGE_WRITE_OUT; break;
|
||||||
case OutputStream::WRITE_USE_EXTERNAL: decision = IMAGE_WRITE_OUT; break;
|
case OutputStream::WRITE_USE_EXTERNAL: decision = IMAGE_EXTERNAL; break;
|
||||||
default:
|
default:
|
||||||
if ( img->getWriteHint()==osg::Image::EXTERNAL_FILE )
|
if ( img->getWriteHint()==osg::Image::EXTERNAL_FILE )
|
||||||
decision = IMAGE_EXTERNAL;
|
decision = IMAGE_EXTERNAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user