diff --git a/src/osgPlugins/ive/IveVersion.h b/src/osgPlugins/ive/IveVersion.h index 51c6ca30c..e15c03070 100644 --- a/src/osgPlugins/ive/IveVersion.h +++ b/src/osgPlugins/ive/IveVersion.h @@ -17,9 +17,9 @@ #define VERSION_0007 7 #define VERSION_0008 8 +#define VERSION_0009 9 - -#define VERSION VERSION_0008 +#define VERSION VERSION_0009 /* The BYTE_SEX tag is used to check the endian diff --git a/src/osgPlugins/ive/Texture.cpp b/src/osgPlugins/ive/Texture.cpp index e44e9b4e6..759ca2124 100644 --- a/src/osgPlugins/ive/Texture.cpp +++ b/src/osgPlugins/ive/Texture.cpp @@ -47,6 +47,15 @@ void Texture::write(DataOutputStream* out){ { out->writeInt(_internalFormat); } + + if ( out->getVersion() >= VERSION_0009 ) + { + out->writeInt(_borderWidth); + out->writeBool(_useHardwareMipMapGeneration); + out->writeBool(_unrefImageDataAfterApply); + out->writeBool(_clientStorageHint); + out->writeBool(_resizeNonPowerOfTwoHint); + } } void Texture::read(DataInputStream* in) @@ -83,6 +92,15 @@ void Texture::read(DataInputStream* in) _internalFormat = in->readInt(); } + if ( in->getVersion() >= VERSION_0009 ) + { + _borderWidth = in->readInt(); + _useHardwareMipMapGeneration = in->readBool(); + _unrefImageDataAfterApply = in->readBool(); + _clientStorageHint = in->readBool(); + _resizeNonPowerOfTwoHint = in->readBool(); + } + } else {