From f4d093df3699769234efad47cf5091b7b9062d05 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 4 Aug 2003 22:03:55 +0000 Subject: [PATCH] Fixed computeFastPathsUsed() so that it includes a check for the presence of _vertexIndices and disables fast paths in this case. --- src/osg/Geometry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index b36ad7577..957c3c415 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -668,7 +668,8 @@ bool Geometry::computeFastPathsUsed() // check to see if fast path can be used. // _fastPath = true; - if (_normalBinding==BIND_PER_PRIMITIVE || (_normalBinding==BIND_PER_VERTEX && _normalIndices.valid())) _fastPath = false; + if (_vertexIndices.valid()) _fastPath = false; + else if (_normalBinding==BIND_PER_PRIMITIVE || (_normalBinding==BIND_PER_VERTEX && _normalIndices.valid())) _fastPath = false; else if (_colorBinding==BIND_PER_PRIMITIVE || (_colorBinding==BIND_PER_VERTEX && _colorIndices.valid())) _fastPath = false; else if (_secondaryColorBinding==BIND_PER_PRIMITIVE || (_secondaryColorBinding==BIND_PER_VERTEX && _secondaryColorIndices.valid())) _fastPath = false; else if (_fogCoordBinding==BIND_PER_PRIMITIVE || (_fogCoordBinding==BIND_PER_VERTEX && _fogCoordIndices.valid())) _fastPath = false;