From Craig Bosma, "Attached is an updated Image.cpp that fixes a very specific
compatability regression that was introduced almost 2 years ago in r8834. The IVE version number was bumped to 32 because of the change in binary layout, but the guard for reading/writing the new field was checked against 31. Of course this only causes a problem (as for us) when you've produced IVE files at version 31, which no longer load (or crash) when loaded by newer OSG/IVE versions."
This commit is contained in:
parent
34fa992ff5
commit
17aaa4db94
@ -36,7 +36,7 @@ void Image::write(DataOutputStream* out)
|
||||
// Write name
|
||||
out->writeString(getFileName());
|
||||
|
||||
if ( out->getVersion() >= VERSION_0031)
|
||||
if ( out->getVersion() >= VERSION_0032)
|
||||
{
|
||||
out->writeInt((int)getWriteHint());
|
||||
}
|
||||
@ -96,7 +96,7 @@ void Image::read(DataInputStream* in)
|
||||
// Read name
|
||||
setFileName(in->readString());
|
||||
|
||||
if ( in->getVersion() >= VERSION_0031)
|
||||
if ( in->getVersion() >= VERSION_0032)
|
||||
{
|
||||
setWriteHint((osg::Image::WriteHint)in->readInt());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user