From a30265de46b8bf4598ab782b5378ef13b83458d7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 4 Jan 2011 10:21:50 +0000 Subject: [PATCH] Added extra checks to osg::Geometry::verifyArrays(std::ostream&) --- src/osg/Geometry.cpp | 47 ++++++++++++++------------------------------ 1 file changed, 15 insertions(+), 32 deletions(-) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 919a464a2..3842a7c1b 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -41,6 +41,8 @@ Geometry::Geometry() // temporary test // setSupportsDisplayList(false); + _vertexData.binding = BIND_PER_VERTEX; + _fastPath = false; _fastPathHint = true; } @@ -2674,7 +2676,7 @@ public: unsigned int numElements = arrayData.array.valid() ? arrayData.array->getNumElements() : 0; if (numElementsgetNumElements() : 0; - for(unsigned int i=0; iindex(i)>=numVertices) - { - out<<"Vertex indice out of bounds of vertex array"<getNumElements() : 0; - if (numVertices