Re: [osg-users] osgShadow::MinimalShadowMap::ViewData::computeScenePolytopeBounds ... causes crash on Mac, fix proposed

2015-04-29 Thread Trajce Nikolov NICK
Hi Robert, tested on OS X and works fine. Thanks ! Nick On Tue, Apr 28, 2015 at 6:01 PM, Robert Osfield robert.osfi...@gmail.com wrote: 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

Re: [osg-users] osgShadow::MinimalShadowMap::ViewData::computeScenePolytopeBounds ... causes crash on Mac, fix proposed

2015-04-29 Thread Robert Osfield
On 29 April 2015 at 07:04, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: Hi Robert, tested on OS X and works fine. Thanks ! Good to hear, thanks for the testing. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] osgShadow::MinimalShadowMap::ViewData::computeScenePolytopeBounds ... causes crash on Mac, fix proposed

2015-04-28 Thread Trajce Nikolov NICK
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

Re: [osg-users] osgShadow::MinimalShadowMap::ViewData::computeScenePolytopeBounds ... causes crash on Mac, fix proposed

2015-04-28 Thread Robert Osfield
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