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

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Tue Apr 28 08:25:15 PDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150428/234410d2/attachment-0001.htm>


More information about the osg-users mailing list