From e9728042b9be81b4afc75c17500bba65d266216f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 27 Jun 2014 15:48:38 +0000 Subject: [PATCH] From Laurens Voerman, "attached is a modified version of src/osgUtil/Tessellator.cpp current code checks for a Nullpointer and on notify level info or above will inform you with a crash, by dereferencing it." git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14315 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgUtil/Tessellator.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/osgUtil/Tessellator.cpp b/src/osgUtil/Tessellator.cpp index ecf20d356..503f04252 100644 --- a/src/osgUtil/Tessellator.cpp +++ b/src/osgUtil/Tessellator.cpp @@ -86,7 +86,13 @@ void Tessellator::addVertex(osg::Vec3* vertex) } else { - OSG_INFO<<"Tessellator::addVertex("<<*vertex<<") detected NaN, ignoring vertex."<