Thanks Craig, fix now merged and submitted to svn/trunk.

On Thu, Sep 30, 2010 at 5:21 PM, Craig Bosma <[email protected]> wrote:
> Hi,
>
> 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.
>
> Here's a diff for reference:
>
> --- Image.cpp   2010-09-30 10:59:54.000000000 -0500
> +++ Image.cpp   2010-05-28 11:27:02.000000000 -0500
> @@ -36,7 +36,7 @@
>     // Write name
>     out->writeString(getFileName());
>
> -    if ( out->getVersion() >= VERSION_0032)
> +    if ( out->getVersion() >= VERSION_0031)
>     {
>         out->writeInt((int)getWriteHint());
>     }
> @@ -96,7 +96,7 @@
>         // Read name
>         setFileName(in->readString());
>
> -        if ( in->getVersion() >= VERSION_0032)
> +        if ( in->getVersion() >= VERSION_0031)
>         {
>             setWriteHint((osg::Image::WriteHint)in->readInt());
>         }
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to