[osg-users] osgShadow::MinimalShadowMap::ViewData::computeScenePolytopeBounds ... causes crash on Mac, fix proposed
Robert Osfield
robert.osfield at gmail.com
Tue Apr 28 09:01:35 PDT 2015
Hi Nick,
The code looks pretty dodgy so I'm not surprised it crashes, just that
surprised we hadn't spotted it sooner. A better solution is to have
two methods, one that takes a matrix and one takes no parameters. I
have implemented this and checked it into svn/trunk.
Could you test it out under OSX for me?
Cheers,
Robert
On 28 April 2015 at 16:25, Trajce Nikolov NICK
<trajce.nikolov.nick at gmail.com> wrote:
> Hi Robert,
>
> as is defined like:
>
> osg::BoundingBox computeScenePolytopeBounds( const osg::Matrix & m =
> *(osg::Matrix*)(NULL));
>
> when using it without passing a matrix it causes crash with g++ on OS X
> (Windows and Linux are fine).
>
> Here is the proposed fix
>
> osg::BoundingBox computeScenePolytopeBounds( const osg::Matrix & m =
> osg::Matrix::identity() );
>
> In the implementation it wont matter since when the matrix reference "is not
> NULL reference" is multiplying vertices with it
>
> What do you think?
>
> Nick
>
> --
> trajce nikolov nick
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
More information about the osg-users
mailing list