Added handling of null dynamic_cast

This commit is contained in:
Robert Osfield
2016-06-30 10:17:23 +01:00
parent ba3eaa83e0
commit 72a80ee8cd

View File

@@ -889,6 +889,12 @@ FltExportVisitor::writeUVList( int numVerts, const osg::Geometry& geom, unsigned
void
FltExportVisitor::handleDrawArrays( const osg::DrawArrays* da, const osg::Geometry& geom, const osg::Geode& geode )
{
if (!da)
{
OSG_WARN<<"fltexp: Invalid DrawArray pointer"<<std::endl;
return;
}
GLint first = da->getFirst();
GLsizei count = da->getCount();
GLenum mode = da->getMode();
@@ -956,6 +962,12 @@ FltExportVisitor::handleDrawArrays( const osg::DrawArrays* da, const osg::Geomet
void
FltExportVisitor::handleDrawArrayLengths( const osg::DrawArrayLengths* dal, const osg::Geometry& geom, const osg::Geode& geode )
{
if (!da;)
{
OSG_WARN<<"fltexp: Invalid DrawArrayLengths pointer"<<std::endl;
return;
}
GLint first = dal->getFirst();
GLenum mode = dal->getMode();